Skip to content

Commit be84f11

Browse files
author
Ulrik Sverdrup
committed
Feature flag collections_drain
1 parent ea4ec93 commit be84f11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcollections/vec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,15 @@ impl<T> Vec<T> {
735735
/// # Examples
736736
///
737737
/// ```
738-
/// # #![feature(collections)]
738+
/// # #![feature(collections_drain, collections_range)]
739739
///
740740
/// // Draining using `..` clears the whole vector.
741741
/// let mut v = vec![1, 2, 3];
742742
/// let u: Vec<_> = v.drain(..).collect();
743743
/// assert_eq!(v, &[]);
744744
/// assert_eq!(u, &[1, 2, 3]);
745745
/// ```
746-
#[unstable(feature = "collections",
746+
#[unstable(feature = "collections_drain",
747747
reason = "recently added, matches RFC")]
748748
pub fn drain<R>(&mut self, range: R) -> Drain<T> where R: RangeArgument<usize> {
749749
// Memory safety
@@ -1827,7 +1827,7 @@ impl<T> Drop for IntoIter<T> {
18271827
}
18281828

18291829
/// A draining iterator for `Vec<T>`.
1830-
#[unstable(feature = "collections", reason = "recently added")]
1830+
#[unstable(feature = "collections_drain", reason = "recently added")]
18311831
pub struct Drain<'a, T: 'a> {
18321832
/// Index of tail to preserve
18331833
tail_start: usize,

0 commit comments

Comments
 (0)