about summary refs log tree commit diff
path: root/library/alloc/src/vec
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2023-08-15 15:05:49 +0000
committerGitHub <noreply@github.com>2023-08-15 15:05:49 +0000
commit90642ad6795687c803a61bfdaa87f46e2262cf44 (patch)
tree5479284d50e663b12412f0360c0c613cf4b157c8 /library/alloc/src/vec
parent3809c091fc25339f606d510b3835182b0cd0dbc7 (diff)
downloadrust-90642ad6795687c803a61bfdaa87f46e2262cf44.tar.gz
rust-90642ad6795687c803a61bfdaa87f46e2262cf44.zip
Update library/alloc/src/vec/mod.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'library/alloc/src/vec')
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 626e2f5f0fa..6a7ec917b2f 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -1220,7 +1220,7 @@ impl<T, A: Allocator> Vec<T, A> {
     ///
     /// This method guarantees that for the purpose of the aliasing model, this method
     /// does not materialize a reference to the underlying slice, and thus the returned pointer
-    /// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`],
+    /// 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 references to specific elements you are planning on accessing through this pointer,
     /// may still invalidate this pointer.