Skip to content

Commit 49e8318

Browse files
Fixing a typographical error.
1 parent b439861 commit 49e8318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ local variable that already exists, and hence no temporary is created.
23342334
Temporaries are not always dropped at the end of the enclosing
23352335
statement. In simple cases where the `&` expression is immediately
23362336
stored into a variable, the compiler will automatically extend
2337-
the lifetime of the temporary until the end of the enclosinb
2337+
the lifetime of the temporary until the end of the enclosing
23382338
block. Therefore, an alternative way to fix the original
23392339
program is to write `let tmp = &foo()` and not `let tmp = foo()`:
23402340

0 commit comments

Comments
 (0)