Skip to content

Commit fd8ba7b

Browse files
committedJan 7, 2024
typo fix
1 parent 78c988f commit fd8ba7b

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
@@ -136,7 +136,7 @@ impl<T, A: Allocator> IntoIter<T, A> {
136136

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

0 commit comments

Comments
 (0)
Please sign in to comment.