We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70effd commit 82b6b10Copy full SHA for 82b6b10
library/core/src/iter/traits/iterator.rs
@@ -4061,9 +4061,10 @@ pub trait Iterator {
4061
unreachable!("Always specialized");
4062
}
4063
4064
- /// Checks if the Iterator has a value.
+ /// Returns `true` if the iterator contains a value.
4065
+ ///
4066
/// 'contains' is short-circuiting; in other words, it will stop processing
- /// as soon as the function finds the item in the Iterator.
4067
+ /// as soon as the function finds the item in the `Iterator`.
4068
///
4069
/// Performance:
4070
/// This method checks the whole iterator, which takes O(n) time.
0 commit comments