Skip to content

Commit aefc158

Browse files
Update diagnostics.rs
Add `a` and other minor text improvements
1 parent 3de0106 commit aefc158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,10 +2307,10 @@ let q = *p;
23072307
```
23082308
23092309
Here, the expression `&foo()` is borrowing the expression
2310-
`foo()`. As `foo()` is call to a function, and not the name of
2310+
`foo()`. As `foo()` is a call to a function, and not the name of
23112311
a variable, this creates a **temporary** -- that temporary stores
23122312
the return value from `foo()` so that it can be borrowed.
2313-
So you might imagine that `let p = bar(&foo())` is equivalent
2313+
You could imagine that `let p = bar(&foo());` is equivalent
23142314
to this:
23152315
23162316
```compile_fail,E0597

0 commit comments

Comments
 (0)