Skip to content

Commit 963d4df

Browse files
minor wording tweak to slice::{as_ptr, as_mut_ptr}
1 parent f77ee2f commit 963d4df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcollections/slice.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ impl<T> [T] {
437437
/// The caller must ensure that the slice outlives the pointer this
438438
/// function returns, or else it will end up pointing to garbage.
439439
///
440-
/// Modifying the slice may cause its buffer to be reallocated, which
441-
/// would also make any pointers to it invalid.
440+
/// Modifying the container referenced by this slice may cause its buffer
441+
/// to be reallocated, which would also make any pointers to it invalid.
442442
///
443443
/// # Examples
444444
///
@@ -463,8 +463,8 @@ impl<T> [T] {
463463
/// The caller must ensure that the slice outlives the pointer this
464464
/// function returns, or else it will end up pointing to garbage.
465465
///
466-
/// Modifying the slice may cause its buffer to be reallocated, which
467-
/// would also make any pointers to it invalid.
466+
/// Modifying the container referenced by this slice may cause its buffer
467+
/// to be reallocated, which would also make any pointers to it invalid.
468468
///
469469
/// # Examples
470470
///

0 commit comments

Comments
 (0)