about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-09-08 09:33:53 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-09-08 09:33:53 -0400
commitca1a81df2388484ec6005b7c6ba8ba953c450bc7 (patch)
tree0c825fa7cd16c188268c266e3fc6ae3b653dfda9
parenta7d63fdbd093a09cae5ec55be881f1195e43cfcd (diff)
downloadrust-ca1a81df2388484ec6005b7c6ba8ba953c450bc7.tar.gz
rust-ca1a81df2388484ec6005b7c6ba8ba953c450bc7.zip
Fix small sentence about references
Thanks Eric, reported via email
-rw-r--r--src/doc/trpl/references-and-borrowing.md4
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 a7a77539f79..0d27e99eae8 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: