Fix comment grammar

Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
mikerite 2019-06-04 08:27:31 +02:00 committed by GitHub
parent 98585a0324
commit 3b7d6eeb4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {