]> git.lizzy.rs Git - rust.git/commitdiff
libcore: Deprecate advance method on Iterators.
authorLuqman Aden <laden@csclub.uwaterloo.ca>
Thu, 12 Jun 2014 06:56:40 +0000 (02:56 -0400)
committerLuqman Aden <me@luqman.ca>
Wed, 9 Jul 2014 22:50:20 +0000 (15:50 -0700)
src/libcore/iter.rs

index 5895d871dbe18e2bb3467f72c09f1fb630e3b9c0..77795a333523791f5200d197ca16e7d56c9cfc18 100644 (file)
@@ -435,9 +435,10 @@ fn by_ref<'r>(&'r mut self) -> ByRef<'r, Self> {
     ///
     /// # 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 {