diff options
| author | The 8472 <git@infinite-source.de> | 2023-07-29 16:08:24 +0200 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2024-01-07 03:42:45 +0100 |
| commit | fd8ba7bc3cfcc72f79da33f74b19c905f0cbb835 (patch) | |
| tree | 9efcbcafea65ed2859247ae4ba9d4dd0d4c295d9 /library/alloc/src/vec | |
| parent | 78c988fe3e497d181ddc07ba954f902c1cf1d480 (diff) | |
| download | rust-fd8ba7bc3cfcc72f79da33f74b19c905f0cbb835.tar.gz rust-fd8ba7bc3cfcc72f79da33f74b19c905f0cbb835.zip | |
typo fix
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/into_iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/into_iter.rs b/library/alloc/src/vec/into_iter.rs index b03e04b7c70..3a5511fe08b 100644 --- a/library/alloc/src/vec/into_iter.rs +++ b/library/alloc/src/vec/into_iter.rs @@ -136,7 +136,7 @@ impl<T, A: Allocator> IntoIter<T, A> { /// Forgets to Drop the remaining elements while still allowing the backing allocation to be freed. pub(crate) fn forget_remaining_elements(&mut self) { - // For th ZST case, it is crucial that we mutate `end` here, not `ptr`. + // For the ZST case, it is crucial that we mutate `end` here, not `ptr`. // `ptr` must stay aligned, while `end` may be unaligned. self.end = self.ptr; } |
