Skip to content

Commit e9f6fdd

Browse files
committed
typo fix
1 parent b6dd153 commit e9f6fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/into_iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<T, A: Allocator> IntoIter<T, A> {
135135

136136
/// Forgets to Drop the remaining elements while still allowing the backing allocation to be freed.
137137
pub(crate) fn forget_remaining_elements(&mut self) {
138-
// For th ZST case, it is crucial that we mutate `end` here, not `ptr`.
138+
// For the ZST case, it is crucial that we mutate `end` here, not `ptr`.
139139
// `ptr` must stay aligned, while `end` may be unaligned.
140140
self.end = self.ptr;
141141
}

0 commit comments

Comments
 (0)