Skip to content

Commit

Permalink
Remove unnecessary mut in iterator.find_map documentation example, Re…
Browse files Browse the repository at this point in the history
…lates to rust-lang#49098
  • Loading branch information
meven committed Oct 26, 2018
1 parent d74b402 commit c674802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ pub trait Iterator {
/// ```
/// let a = ["lol", "NaN", "2", "5"];
///
/// let mut first_number = a.iter().find_map(|s| s.parse().ok());
/// let first_number = a.iter().find_map(|s| s.parse().ok());
///
/// assert_eq!(first_number, Some(2));
/// ```
Expand Down

0 comments on commit c674802

Please sign in to comment.