Skip to content

Commit

Permalink
remove .take(10) from Range example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-piziak committed Aug 15, 2016
1 parent c9f2055 commit 2c9a1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2c9a1d9

Please sign in to comment.