Skip to content

Commit ffd171e

Browse files
committed
core: Small fix in fold docs
Adaptors are things that take iterators and adapt them into other iterators. With this definition, fold is just a usual method, because it doesn't normally make an iterator.
1 parent efceda2 commit ffd171e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ pub trait Iterator {
13411341
(left, right)
13421342
}
13431343

1344-
/// An iterator adaptor that applies a function, producing a single, final value.
1344+
/// An iterator method that applies a function, producing a single, final value.
13451345
///
13461346
/// `fold()` takes two arguments: an initial value, and a closure with two
13471347
/// arguments: an 'accumulator', and an element. The closure returns the value that

0 commit comments

Comments
 (0)