Skip to content

Commit 10fc06f

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

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
@@ -1274,7 +1274,7 @@ impl<T, A: Allocator> Vec<T, A> {
12741274
///
12751275
/// This method guarantees that for the purpose of the aliasing model, this method
12761276
/// does not materialize a reference to the underlying slice, and thus the returned pointer
1277-
/// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`],
1277+
/// will remain valid when mixed with other calls to [`as_ptr`] and [`as_mut_ptr`].
12781278
/// Note that calling other methods that materialize references to the slice,
12791279
/// or references to specific elements you are planning on accessing through this pointer,
12801280
/// may still invalidate this pointer.

0 commit comments

Comments
 (0)