Skip to content

Commit 0c82a5c

Browse files
Apply suggestions from code review
1 parent 0891496 commit 0c82a5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/iter/traits/exact_size.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@
6969
/// ```
7070
#[stable(feature = "rust1", since = "1.0.0")]
7171
pub trait ExactSizeIterator: Iterator {
72-
/// Returns the exact length of the iterator, which is the number of times
73-
/// the iterator will return `Some(T)` before returning `None`.
72+
/// Returns the exact length of the iterator.
7473
///
74+
/// The implementation ensures that the iterator will return exactly `len()`
75+
/// more times a `Some(T)` value, before returning `None`.
7576
/// This method has a default implementation, so you usually should not
7677
/// implement it directly. However, if you can provide a more efficient
7778
/// implementation, you can do so. See the [trait-level] docs for an

0 commit comments

Comments
 (0)