Skip to content

Commit 8739708

Browse files
authored
Fix typo in simplify_try.rs
assigment -> assignment
1 parent 28d73a3 commit 8739708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/simplify_try.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ fn optimization_applies<'tcx>(
306306
return false;
307307
}
308308

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

0 commit comments

Comments
 (0)