File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -735,15 +735,15 @@ impl<T> Vec<T> {
735
735
/// # Examples
736
736
///
737
737
/// ```
738
- /// # #![feature(collections )]
738
+ /// # #![feature(collections_drain, collections_range )]
739
739
///
740
740
/// // Draining using `..` clears the whole vector.
741
741
/// let mut v = vec![1, 2, 3];
742
742
/// let u: Vec<_> = v.drain(..).collect();
743
743
/// assert_eq!(v, &[]);
744
744
/// assert_eq!(u, &[1, 2, 3]);
745
745
/// ```
746
- #[ unstable( feature = "collections " ,
746
+ #[ unstable( feature = "collections_drain " ,
747
747
reason = "recently added, matches RFC" ) ]
748
748
pub fn drain < R > ( & mut self , range : R ) -> Drain < T > where R : RangeArgument < usize > {
749
749
// Memory safety
@@ -1827,7 +1827,7 @@ impl<T> Drop for IntoIter<T> {
1827
1827
}
1828
1828
1829
1829
/// A draining iterator for `Vec<T>`.
1830
- #[ unstable( feature = "collections " , reason = "recently added" ) ]
1830
+ #[ unstable( feature = "collections_drain " , reason = "recently added" ) ]
1831
1831
pub struct Drain < ' a , T : ' a > {
1832
1832
/// Index of tail to preserve
1833
1833
tail_start : usize ,
You can’t perform that action at this time.
0 commit comments