Skip to content

Commit 82b6b10

Browse files
committed
made the docs more consistent with similar methods of other types
1 parent e70effd commit 82b6b10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4061,9 +4061,10 @@ pub trait Iterator {
40614061
unreachable!("Always specialized");
40624062
}
40634063

4064-
/// Checks if the Iterator has a value.
4064+
/// Returns `true` if the iterator contains a value.
4065+
///
40654066
/// 'contains' is short-circuiting; in other words, it will stop processing
4066-
/// as soon as the function finds the item in the Iterator.
4067+
/// as soon as the function finds the item in the `Iterator`.
40674068
///
40684069
/// Performance:
40694070
/// This method checks the whole iterator, which takes O(n) time.

0 commit comments

Comments
 (0)