File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ impl CString {
352
352
/// # Safety
353
353
///
354
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
355
+ /// obtained by calling [`CString::into_raw`] and the memory it points to must not be accessed
356
356
/// through any other pointer during the lifetime of reconstructed `CString`.
357
357
/// Other usage (e.g., trying to take ownership of a string that was allocated by foreign code)
358
358
/// is likely to lead to undefined behavior or allocator corruption.
Original file line number Diff line number Diff line change @@ -608,8 +608,6 @@ impl str {
608
608
///
609
609
/// * The provided bytes must contain a valid UTF-8 sequence.
610
610
///
611
- /// * The `Box<[u8]>` must have been allocated via the global allocator.
612
- ///
613
611
/// # Examples
614
612
///
615
613
/// ```
You can’t perform that action at this time.
0 commit comments