diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2017-09-18 21:18:15 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2017-09-18 21:45:23 +0200 |
| commit | ffd171e47f6cdd5b05e377cbcf088070720f31bc (patch) | |
| tree | da6f10e191186937085c8cff05383deab24de5e1 /src/libcore | |
| parent | efceda220e92f02f7a29a15e4cf56f5a3cdf1792 (diff) | |
| download | rust-ffd171e47f6cdd5b05e377cbcf088070720f31bc.tar.gz rust-ffd171e47f6cdd5b05e377cbcf088070720f31bc.zip | |
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.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter/iterator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 7c009114afe..aacc29406b6 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -1341,7 +1341,7 @@ pub trait Iterator { (left, right) } - /// An iterator adaptor that applies a function, producing a single, final value. + /// An iterator method that applies a function, producing a single, final value. /// /// `fold()` takes two arguments: an initial value, and a closure with two /// arguments: an 'accumulator', and an element. The closure returns the value that |
