Skip to content

Commit 7cea69c

Browse files
Update library/alloc/src/vec/mod.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 6c6875d commit 7cea69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ impl<T, A: Allocator> Vec<T, A> {
12231223
/// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`].
12241224
/// Note that calling other methods that materialize mutable references to the slice,
12251225
/// or mutable references to specific elements you are planning on accessing through this pointer,
1226-
/// may still invalidate this pointer.
1226+
/// as well as writing to those elements, may still invalidate this pointer.
12271227
/// See the second example below for how this guarantee can be used.
12281228
///
12291229
///

0 commit comments

Comments
 (0)