diff options
| author | Duarte Nunes <duarte.nunes@datadoghq.com> | 2022-07-13 21:49:31 -0300 |
|---|---|---|
| committer | Duarte Nunes <duarte.nunes@datadoghq.com> | 2022-07-13 21:49:31 -0300 |
| commit | 050115c0d4115fb31c056ae858384ef48a77239d (patch) | |
| tree | 68dff373bd35f5dd9f07d0f246466bf63ace1877 /library/alloc | |
| parent | c9ec7aa0d7013bab63477adc77a94163a0df2c32 (diff) | |
| download | rust-050115c0d4115fb31c056ae858384ef48a77239d.tar.gz rust-050115c0d4115fb31c056ae858384ef48a77239d.zip | |
typo
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 17342cacd76..6b544c70250 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -503,7 +503,7 @@ impl<T> Vec<T> { /// * The allocated size in bytes must be no larger than `isize::MAX`. /// See the safety documentation of [`pointer::offset`]. /// - /// These requirements are always uphead by any `ptr` that has been allocated + /// These requirements are always upheld by any `ptr` that has been allocated /// via `Vec<T>`. Other allocation sources are allowed if the invariants are /// upheld. /// @@ -668,7 +668,7 @@ impl<T, A: Allocator> Vec<T, A> { /// * The allocated size in bytes must be no larger than `isize::MAX`. /// See the safety documentation of [`pointer::offset`]. /// - /// These requirements are always uphead by any `ptr` that has been allocated + /// These requirements are always upheld by any `ptr` that has been allocated /// via `Vec<T>`. Other allocation sources are allowed if the invariants are /// upheld. /// |
