We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd602d commit 7117237Copy full SHA for 7117237
src/cxx_string.rs
@@ -130,6 +130,8 @@ impl CxxString {
130
/// internal null bytes. As such, the returned pointer only makes sense as a
131
/// string in combination with the length returned by [`len()`][len].
132
///
133
+ /// Modifying the string data through this pointer has undefined behavior.
134
+ ///
135
/// [data]: https://en.cppreference.com/w/cpp/string/basic_string/data
136
/// [len]: #method.len
137
pub fn as_ptr(&self) -> *const u8 {
0 commit comments