Skip to content

Commit

Permalink
collections: Add correct feature flag to example in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrik Sverdrup committed Apr 24, 2015
1 parent dae8cb7 commit aa9e061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcollections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ impl<T> Vec<T> {
/// # Examples
///
/// ```
/// # #![feature(collections)]
///
/// // Draining using `..` clears the whole vector.
/// let mut v = vec![1, 2, 3];
/// let u: Vec<_> = v.drain(..).collect();
Expand Down

0 comments on commit aa9e061

Please sign in to comment.