Skip to content

Commit a6a721a

Browse files
author
Ulrik Sverdrup
committed
collecdtions: Add correct feature flag to example in docs
1 parent dae8cb7 commit a6a721a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcollections/vec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ impl<T> Vec<T> {
735735
/// # Examples
736736
///
737737
/// ```
738+
/// # #![feature(collections)]
739+
///
738740
/// // Draining using `..` clears the whole vector.
739741
/// let mut v = vec![1, 2, 3];
740742
/// let u: Vec<_> = v.drain(..).collect();

0 commit comments

Comments
 (0)