diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2023-08-16 20:36:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-16 20:36:21 +0000 |
| commit | 7cea69c9a22fb2adec3ab78be281c8c5561a8b09 (patch) | |
| tree | c794131a3ad1bdce0075a0e6d71bc6924e047664 | |
| parent | 6c6875d8ecb1df024920ab7a80aa70cf5b385ddc (diff) | |
| download | rust-7cea69c9a22fb2adec3ab78be281c8c5561a8b09.tar.gz rust-7cea69c9a22fb2adec3ab78be281c8c5561a8b09.zip | |
Update library/alloc/src/vec/mod.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 2bf25b3e01c..5fa184daf9c 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1223,7 +1223,7 @@ impl<T, A: Allocator> Vec<T, A> { /// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`]. /// Note that calling other methods that materialize mutable references to the slice, /// or mutable references to specific elements you are planning on accessing through this pointer, - /// may still invalidate this pointer. + /// as well as writing to those elements, may still invalidate this pointer. /// See the second example below for how this guarantee can be used. /// /// |
