Skip to content

Commit de1aa71

Browse files
committed
add comment
mainly as a TODO for myself to add something to Examples there as well
1 parent 552e6f1 commit de1aa71

File tree

1 file changed

+3
-0
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+3
-0
lines changed

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,6 +1974,9 @@ impl<T, A: Allocator> VecDeque<T, A> {
19741974
/// Prepends all contents of the iterator to the front of the deque.
19751975
/// The order of the contents is preserved.
19761976
///
1977+
/// To get behavior like [`append`][VecDeque::append] where elements are moved
1978+
/// from the other collection to this one, use `self.prepend(other.drain())`.
1979+
///
19771980
/// # Examples
19781981
///
19791982
/// ```

0 commit comments

Comments
 (0)