Skip to content

Commit 8a0a13a

Browse files
the8472pickfire
andcommitted
add comment for IntoIter::move_to
Co-authored-by: Ivan Tham <[email protected]>
1 parent 2409653 commit 8a0a13a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,6 +2956,7 @@ impl<T> IntoIter<T> {
29562956
unsafe { Vec::from_raw_parts(iter.buf.as_ptr(), offset as usize + iter.len(), iter.cap) }
29572957
}
29582958

2959+
/// Move remaining elements to the end of `dest`.
29592960
fn move_to(mut self, dest: &mut Vec<T>) {
29602961
unsafe {
29612962
dest.append_elements(self.as_slice() as _);

0 commit comments

Comments
 (0)