Skip to content

Commit 90642ad

Browse files
Update library/alloc/src/vec/mod.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 3809c09 commit 90642ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ impl<T, A: Allocator> Vec<T, A> {
12201220
///
12211221
/// This method guarantees that for the purpose of the aliasing model, this method
12221222
/// does not materialize a reference to the underlying slice, and thus the returned pointer
1223-
/// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`],
1223+
/// 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 references to specific elements you are planning on accessing through this pointer,
12261226
/// may still invalidate this pointer.

0 commit comments

Comments
 (0)