Fix small sentence about references

Thanks Eric, reported via email
This commit is contained in:
Steve Klabnik 2015-09-08 09:33:53 -04:00
parent a7d63fdbd0
commit ca1a81df23

View File

@ -298,8 +298,8 @@ We cant modify `v` because its 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 didnt check this property, we could accidentally use a reference
which was invalid. For example: