]> git.lizzy.rs Git - rust.git/commitdiff
Fixed typo in std::iter
authorAdolfo Ochagavía <aochagavia92@gmail.com>
Sun, 27 Apr 2014 14:50:55 +0000 (16:50 +0200)
committerAdolfo Ochagavía <aochagavia92@gmail.com>
Sun, 27 Apr 2014 14:50:55 +0000 (16:50 +0200)
src/libstd/iter.rs

index d895331752f882a1422d38368b1e1c29b35c8796..18532c3944364edea7f7a93a537266d97ffea183 100644 (file)
@@ -306,7 +306,7 @@ fn take(self, n: uint) -> Take<Self> {
         Take{iter: self, n: n}
     }
 
-    /// Creates a new iterator which behaves in a similar fashion to foldl.
+    /// Creates a new iterator which behaves in a similar fashion to fold.
     /// There is a state which is passed between each iteration and can be
     /// mutated as necessary. The yielded values from the closure are yielded
     /// from the Scan instance when not None.