We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b560854 commit 9be9482Copy full SHA for 9be9482
library/alloc/src/ffi/c_str.rs
@@ -352,7 +352,7 @@ impl CString {
352
/// # Safety
353
///
354
/// This should only ever be called with a pointer that was earlier
355
- /// obtained by calling [`CString::into_raw`] and the memory it points to must not be accessed
+ /// obtained by calling [`CString::into_raw`], and the memory it points to must not be accessed
356
/// through any other pointer during the lifetime of reconstructed `CString`.
357
/// Other usage (e.g., trying to take ownership of a string that was allocated by foreign code)
358
/// is likely to lead to undefined behavior or allocator corruption.
0 commit comments