File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
branches/dist-snap/src/libstd Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 2839805b9cb5414e4abb789e51adf452cea42315
9
+ refs/heads/dist-snap: 1f27512b1795697d21e8b23685c9efd56b89c3cf
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -424,16 +424,13 @@ pub trait Iterator<A> {
424
424
ByRef { iter : self }
425
425
}
426
426
427
- /// An adaptation of an external iterator to the for-loop protocol of rust.
427
+ /// Apply a function to each element, or stop iterating if the
428
+ /// function returns `false`.
428
429
///
429
430
/// # Example
430
431
///
431
432
/// ```rust
432
- /// use std::iter::count;
433
- ///
434
- /// for i in count(0, 10) {
435
- /// println!("{}", i);
436
- /// }
433
+ /// range(0, 5).advance(|x| {print!("{} ", x); true});
437
434
/// ```
438
435
#[ inline]
439
436
fn advance ( & mut self , f : & fn ( A ) -> bool ) -> bool {
You can’t perform that action at this time.
0 commit comments