diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-03-02 21:42:55 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-03-02 21:42:55 +0100 |
| commit | 0c82a5c1d35c84859ed2f88194858adae831d06d (patch) | |
| tree | 2a343befe773ef56e2f1e43a9f4e454534edfdfe | |
| parent | 0891496898423bd03227a27492816ef56319d95c (diff) | |
| download | rust-0c82a5c1d35c84859ed2f88194858adae831d06d.tar.gz rust-0c82a5c1d35c84859ed2f88194858adae831d06d.zip | |
Apply suggestions from code review
| -rw-r--r-- | src/libcore/iter/traits/exact_size.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/iter/traits/exact_size.rs b/src/libcore/iter/traits/exact_size.rs index 946c3f85824..ad87d09588e 100644 --- a/src/libcore/iter/traits/exact_size.rs +++ b/src/libcore/iter/traits/exact_size.rs @@ -69,9 +69,10 @@ /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub trait ExactSizeIterator: Iterator { - /// Returns the exact length of the iterator, which is the number of times - /// the iterator will return `Some(T)` before returning `None`. + /// Returns the exact length of the iterator. /// + /// The implementation ensures that the iterator will return exactly `len()` + /// more times a `Some(T)` value, before returning `None`. /// This method has a default implementation, so you usually should not /// implement it directly. However, if you can provide a more efficient /// implementation, you can do so. See the [trait-level] docs for an |
