Skip to content

Commit

Permalink
Fix comment grammar
Browse files Browse the repository at this point in the history
Co-Authored-By: Philipp Krones <hello@philkrones.com>
  • Loading branch information
mikerite and flip1995 committed Jun 4, 2019
1 parent 98585a0 commit 3b7d6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Expand Up @@ -1884,7 +1884,7 @@ fn lint_map_unwrap_or_else<'a, 'tcx>(

if is_option || is_result {
// Don't make a suggestion that may fail to compile due to mutably borrowing
// they same variable twice.
// the same variable twice.
let map_mutated_vars = mutated_variables(&map_args[0], cx);
let unwrap_mutated_vars = mutated_variables(&unwrap_args[1], cx);
if let (Some(map_mutated_vars), Some(unwrap_mutated_vars)) = (map_mutated_vars, unwrap_mutated_vars) {
Expand Down

0 comments on commit 3b7d6ee

Please sign in to comment.