File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,13 @@ pub trait Iterator {
201
201
202
202
/// Consumes the iterator, counting the number of iterations and returning it.
203
203
///
204
- /// This method will evaluate the iterator until its [`next`] returns
205
- /// [`None`]. Once [`None`] is encountered, `count()` returns one less than the
206
- /// number of times it called [`next`]. Note that [`next`] has to be called at
207
- /// least once even if the iterator does not have any elements.
204
+ /// This method will call [`next`] repeatedly until [`None`] is encountered,
205
+ /// returning the number of times it saw [`Some`]. Note that [`next`] has to be
206
+ /// called at least once even if the iterator does not have any elements.
208
207
///
209
208
/// [`next`]: #tymethod.next
210
209
/// [`None`]: ../../std/option/enum.Option.html#variant.None
210
+ /// [`Some`]: ../../std/option/enum.Option.html#variant.Some
211
211
///
212
212
/// # Overflow Behavior
213
213
///
You can’t perform that action at this time.
0 commit comments