remove .take(10) from Range example
This commit is contained in:
parent
c9f2055110
commit
2c9a1d9c4a
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ impl<A: Step> ops::Range<A> {
|
|||
///
|
||||
/// ```
|
||||
/// #![feature(step_by)]
|
||||
/// let result: Vec<_> = (0..10).step_by(2).take(10).collect();
|
||||
/// let result: Vec<_> = (0..10).step_by(2).collect();
|
||||
/// assert_eq!(result, vec![0, 2, 4, 6, 8]);
|
||||
/// ```
|
||||
#[unstable(feature = "step_by", reason = "recent addition",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue