Rollup merge of #59889 - andrewbanchich:minor-text-fixes, r=estebank

Update diagnostics.rs

Add `a` and other minor text improvements
This commit is contained in:
Mazdak Farrokhzad 2019-04-12 12:18:07 +02:00 committed by GitHub
commit cb7079fe72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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