File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1608,11 +1608,12 @@ pub trait Itertools : Iterator {
1608
1608
None
1609
1609
}
1610
1610
1611
- /// Check whether the iterator contains an item .
1611
+ /// Returns `true` if the given item is present in this iterator .
1612
1612
///
1613
- /// If the iterator contains the item prior to its end,
1614
- /// this method will short-circuit and only partially
1615
- /// exhaust the iterator.
1613
+ /// This method is short-circuiting. If the given item is present in this
1614
+ /// iterator, the this method will consume the iterator up-to-and-including
1615
+ /// the item. If the given item is not present in this iterator, the
1616
+ /// iterator will be exhausted.
1616
1617
///
1617
1618
/// ```
1618
1619
/// use itertools::Itertools;
You can’t perform that action at this time.
0 commit comments