Rollup merge of #28295 - steveklabnik:language_fix, r=alexcrichton

Thanks Eric, reported via email
This commit is contained in:
Manish Goregaokar 2015-09-09 18:36:11 +05:30
commit ee00780b98

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: