Skip to content

Commit

Permalink
Update diagnostics.rs
Browse files Browse the repository at this point in the history
Add `a` and other minor text improvements
  • Loading branch information
andrewbanchich authored Apr 11, 2019
1 parent 3de0106 commit aefc158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2307,10 +2307,10 @@ let q = *p;
```
Here, the expression `&foo()` is borrowing the expression
`foo()`. As `foo()` is call to a function, and not the name of
`foo()`. As `foo()` is a call to a function, and not the name of
a variable, this creates a **temporary** -- that temporary stores
the return value from `foo()` so that it can be borrowed.
So you might imagine that `let p = bar(&foo())` is equivalent
You could imagine that `let p = bar(&foo());` is equivalent
to this:
```compile_fail,E0597
Expand Down

0 comments on commit aefc158

Please sign in to comment.