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 98585a0 commit 3b7d6eeCopy full SHA for 3b7d6ee
clippy_lints/src/methods/mod.rs
@@ -1884,7 +1884,7 @@ fn lint_map_unwrap_or_else<'a, 'tcx>(
1884
1885
if is_option || is_result {
1886
// Don't make a suggestion that may fail to compile due to mutably borrowing
1887
- // they same variable twice.
+ // the same variable twice.
1888
let map_mutated_vars = mutated_variables(&map_args[0], cx);
1889
let unwrap_mutated_vars = mutated_variables(&unwrap_args[1], cx);
1890
if let (Some(map_mutated_vars), Some(unwrap_mutated_vars)) = (map_mutated_vars, unwrap_mutated_vars) {
0 commit comments