about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src
diff options
context:
space:
mode:
authorcarschandler <92899389+carschandler@users.noreply.github.com>2024-03-01 17:31:02 -0600
committerGitHub <noreply@github.com>2024-03-01 17:31:02 -0600
commit50ff36239a424c855a5faeac45ac269e1c3f54d8 (patch)
treebc2af0baf522f73a8b5ccec0e183616fe5962fd9 /compiler/rustc_error_codes/src
parent71a697327bd64bdebcdf81b10c3dd03dfe33cb68 (diff)
downloadrust-50ff36239a424c855a5faeac45ac269e1c3f54d8.tar.gz
rust-50ff36239a424c855a5faeac45ac269e1c3f54d8.zip
Update E0716.md
Clearer wording
Diffstat (limited to 'compiler/rustc_error_codes/src')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0716.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0716.md b/compiler/rustc_error_codes/src/error_codes/E0716.md
index b50c8b8e7ca..be60716a264 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0716.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0716.md
@@ -30,9 +30,8 @@ let q = p;
 
 Whenever a temporary is created, it is automatically dropped (freed) according
 to fixed rules. Ordinarily, the temporary is dropped at the end of the enclosing
-statement -- in this case, after the outer `let` that assigns to `p`. This is
-illustrated in the example above by showing that `tmp` would be freed as we exit
-the block.
+statement -- in this case, after the `let p`. This is illustrated in the example
+above by showing that `tmp` would be freed as we exit the block.
 
 To fix this problem, you need to create a local variable to store the value in
 rather than relying on a temporary. For example, you might change the original