put feature attribute in example
This commit is contained in:
parent
230b55dcf8
commit
e4e77737f9
1 changed files with 2 additions and 0 deletions
|
|
@ -3011,6 +3011,8 @@ impl<T, A: Allocator> Vec<T, A> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(vec_into_chunks)]
|
||||
///
|
||||
/// let vec = vec![0, 1, 2, 3, 4, 5, 6, 7];
|
||||
/// assert_eq!(vec.into_chunks::<3>(), [[0, 1, 2], [3, 4, 5]]);
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue