Skip to content

Commit c674802

Browse files
committed
Remove unnecessary mut in iterator.find_map documentation example, Relates to #49098
1 parent d74b402 commit c674802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ pub trait Iterator {
18571857
/// ```
18581858
/// let a = ["lol", "NaN", "2", "5"];
18591859
///
1860-
/// let mut first_number = a.iter().find_map(|s| s.parse().ok());
1860+
/// let first_number = a.iter().find_map(|s| s.parse().ok());
18611861
///
18621862
/// assert_eq!(first_number, Some(2));
18631863
/// ```

0 commit comments

Comments
 (0)