Skip to content

Commit 1eb4ce0

Browse files
committed
libcore: Deprecate advance method on Iterators.
1 parent 66e1f11 commit 1eb4ce0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/iter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,10 @@ pub trait Iterator<A> {
435435
///
436436
/// # Example
437437
///
438-
/// ```rust
438+
/// ```rust,ignore
439439
/// range(0u, 5).advance(|x| {print!("{} ", x); true});
440440
/// ```
441+
#[deprecated = "use the `all` method instead"]
441442
#[inline]
442443
fn advance(&mut self, f: |A| -> bool) -> bool {
443444
loop {

0 commit comments

Comments
 (0)