1
Fork 0

libcore: Deprecate advance method on Iterators.

This commit is contained in:
Luqman Aden 2014-06-12 02:56:40 -04:00 committed by Luqman Aden
parent 66e1f11ef4
commit 1eb4ce0297

View file

@ -435,9 +435,10 @@ pub trait Iterator<A> {
///
/// # Example
///
/// ```rust
/// ```rust,ignore
/// range(0u, 5).advance(|x| {print!("{} ", x); true});
/// ```
#[deprecated = "use the `all` method instead"]
#[inline]
fn advance(&mut self, f: |A| -> bool) -> bool {
loop {