Skip to content

Commit

Permalink
Fix typo in simplify_try.rs
Browse files Browse the repository at this point in the history
assigment -> assignment
  • Loading branch information
eltociear committed Dec 23, 2020
1 parent 28d73a3 commit 8739708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/simplify_try.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ fn optimization_applies<'tcx>(
return false;
}

// Verify the assigment chain consists of the form b = a; c = b; d = c; etc...
// Verify the assignment chain consists of the form b = a; c = b; d = c; etc...
if opt_info.field_tmp_assignments.is_empty() {
trace!("NO: no assignments found");
return false;
Expand Down

0 comments on commit 8739708

Please sign in to comment.