Skip to content

Commit

Permalink
Rollup merge of rust-lang#57530 - insideoutclub:master, r=estebank
Browse files Browse the repository at this point in the history
Fixing a typographical error.
  • Loading branch information
Centril committed Jan 12, 2019
2 parents e234d15 + 49e8318 commit 0a8b5b4
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 0a8b5b4

Please sign in to comment.