Skip to content

Commit 050115c

Browse files
committed
typo
1 parent c9ec7aa commit 050115c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ impl<T> Vec<T> {
503503
/// * The allocated size in bytes must be no larger than `isize::MAX`.
504504
/// See the safety documentation of [`pointer::offset`].
505505
///
506-
/// These requirements are always uphead by any `ptr` that has been allocated
506+
/// These requirements are always upheld by any `ptr` that has been allocated
507507
/// via `Vec<T>`. Other allocation sources are allowed if the invariants are
508508
/// upheld.
509509
///
@@ -668,7 +668,7 @@ impl<T, A: Allocator> Vec<T, A> {
668668
/// * The allocated size in bytes must be no larger than `isize::MAX`.
669669
/// See the safety documentation of [`pointer::offset`].
670670
///
671-
/// These requirements are always uphead by any `ptr` that has been allocated
671+
/// These requirements are always upheld by any `ptr` that has been allocated
672672
/// via `Vec<T>`. Other allocation sources are allowed if the invariants are
673673
/// upheld.
674674
///

0 commit comments

Comments
 (0)