File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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> {
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" ) ]
18311831pub struct Drain < ' a , T : ' a > {
18321832 /// Index of tail to preserve
18331833 tail_start : usize ,
You can’t perform that action at this time.
0 commit comments