]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in simplify_try.rs
authorIkko Ashimine <eltociear@gmail.com>
Wed, 23 Dec 2020 12:11:59 +0000 (21:11 +0900)
committerGitHub <noreply@github.com>
Wed, 23 Dec 2020 12:11:59 +0000 (21:11 +0900)
assigment -> assignment

compiler/rustc_mir/src/transform/simplify_try.rs

index bea95bf43d21eb3ac880fa31aed7d7fee1fa734b..a3459887a9a7596700bb6b92c44a869204ba7668 100644 (file)
@@ -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;