Skip to content

Commit 7bd13fc

Browse files
committed
Fix doc test
1 parent b773be3 commit 7bd13fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ pub trait Itertools : Iterator {
17381738
/// use itertools::Itertools;
17391739
///
17401740
/// let numbers = [1, 2, 3, 4];
1741-
/// assert_eq!(numbers.iter().find_or_last(|x| x > 5), Some(4));
1741+
/// assert_eq!(numbers.iter().find_or_last(|&&x| x > 5), Some(&4));
17421742
/// ```
17431743
fn find_or_last<P>(mut self, predicate: P) -> Option<Self::Item>
17441744
where Self: Sized,

0 commit comments

Comments
 (0)