We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b14bd74 commit c75c4cdCopy full SHA for c75c4cd
library/alloc/src/ffi/c_str.rs
@@ -352,8 +352,8 @@ 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 this pointer must not be accessed
356
- /// through any other pointer during the lifetime of reconstructed `CString`.
+ /// obtained by calling [`CString::into_raw`] and this pointer must not be accessed
+ /// 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.
359
0 commit comments