diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-12 12:18:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-12 12:18:07 +0200 |
| commit | cb7079fe72c16097ee3a51b986f6058f85d583d4 (patch) | |
| tree | a1fbd215ef20fc64a79a20d325ee75ca914deeaf | |
| parent | 257dbb826d0000f7d56c71fb7d93b5de288a157e (diff) | |
| parent | aefc1581b125876f37c652f84fddc81b0b25fe12 (diff) | |
| download | rust-cb7079fe72c16097ee3a51b986f6058f85d583d4.tar.gz rust-cb7079fe72c16097ee3a51b986f6058f85d583d4.zip | |
Rollup merge of #59889 - andrewbanchich:minor-text-fixes, r=estebank
Update diagnostics.rs Add `a` and other minor text improvements
| -rw-r--r-- | src/librustc_mir/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs index e1b66312da2..c8836fe5193 100644 --- a/src/librustc_mir/diagnostics.rs +++ b/src/librustc_mir/diagnostics.rs @@ -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 |
