Skip to content

Commit e4e7773

Browse files
committed
put feature attribute in example
1 parent 230b55d commit e4e7773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,6 +3011,8 @@ impl<T, A: Allocator> Vec<T, A> {
30113011
/// # Examples
30123012
///
30133013
/// ```
3014+
/// #![feature(vec_into_chunks)]
3015+
///
30143016
/// let vec = vec![0, 1, 2, 3, 4, 5, 6, 7];
30153017
/// assert_eq!(vec.into_chunks::<3>(), [[0, 1, 2], [3, 4, 5]]);
30163018
///

0 commit comments

Comments
 (0)