Skip to content

Commit

Permalink
Fixing a typographical error.
Browse files Browse the repository at this point in the history
  • Loading branch information
insideoutclub authored Jan 11, 2019
1 parent b439861 commit 49e8318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ local variable that already exists, and hence no temporary is created.
Temporaries are not always dropped at the end of the enclosing
statement. In simple cases where the `&` expression is immediately
stored into a variable, the compiler will automatically extend
the lifetime of the temporary until the end of the enclosinb
the lifetime of the temporary until the end of the enclosing
block. Therefore, an alternative way to fix the original
program is to write `let tmp = &foo()` and not `let tmp = foo()`:
Expand Down

0 comments on commit 49e8318

Please sign in to comment.