libcore: Deprecate advance method on Iterators.
This commit is contained in:
parent
66e1f11ef4
commit
1eb4ce0297
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue