Rollup merge of #25526 - chellmuth:patch-1, r=alexcrichton
This commit is contained in:
commit
6f2a069b9c
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ We can’t modify `v` because it’s borrowed by the loop.
|
|||
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.
|
||||
|
||||
If Rust didn’t check that this property, we could accidentally use a reference
|
||||
If Rust didn’t check this property, we could accidentally use a reference
|
||||
which was invalid. For example:
|
||||
|
||||
```rust,ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue