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 a7d63fd commit ca1a81dCopy full SHA for ca1a81d
src/doc/trpl/references-and-borrowing.md
@@ -298,8 +298,8 @@ We can’t modify `v` because it’s borrowed by the loop.
298
299
### use after free
300
301
-References must live as long as the resource they refer to. Rust will check the
302
-scopes of your references to ensure that this is true.
+References must not live longer than the resource they refer to. Rust will
+check the scopes of your references to ensure that this is true.
303
304
If Rust didn’t check this property, we could accidentally use a reference
305
which was invalid. For example:
0 commit comments