diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-09 18:36:11 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-09 18:36:11 +0530 |
| commit | ee00780b985b6953346eb2dfe60d364d8159a86f (patch) | |
| tree | 8cbec213029c391f7224ebc599a7fec6242c0064 | |
| parent | b33b121e9529c72ffa4528852a08c108304ca77a (diff) | |
| parent | ca1a81df2388484ec6005b7c6ba8ba953c450bc7 (diff) | |
| download | rust-ee00780b985b6953346eb2dfe60d364d8159a86f.tar.gz rust-ee00780b985b6953346eb2dfe60d364d8159a86f.zip | |
Rollup merge of #28295 - steveklabnik:language_fix, r=alexcrichton
Thanks Eric, reported via email
| -rw-r--r-- | src/doc/trpl/references-and-borrowing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md index ed6a8cfefa7..50297b266d9 100644 --- a/src/doc/trpl/references-and-borrowing.md +++ b/src/doc/trpl/references-and-borrowing.md @@ -298,8 +298,8 @@ We can’t modify `v` because it’s borrowed by the loop. ### use after free -References must live as long as the resource they refer to. Rust will check the -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. If Rust didn’t check this property, we could accidentally use a reference which was invalid. For example: |
