We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de0106 commit aefc158Copy full SHA for aefc158
src/librustc_mir/diagnostics.rs
@@ -2307,10 +2307,10 @@ let q = *p;
2307
```
2308
2309
Here, the expression `&foo()` is borrowing the expression
2310
-`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
2311
a variable, this creates a **temporary** -- that temporary stores
2312
the return value from `foo()` so that it can be borrowed.
2313
-So you might imagine that `let p = bar(&foo())` is equivalent
+You could imagine that `let p = bar(&foo());` is equivalent
2314
to this:
2315
2316
```compile_fail,E0597
0 commit comments