diff options
| author | Chris Hellmuth <chellmuth@gmail.com> | 2015-05-17 00:19:53 -0700 |
|---|---|---|
| committer | Chris Hellmuth <chellmuth@gmail.com> | 2015-05-17 00:19:53 -0700 |
| commit | 09a473ea7bd85361af971e2f66ec23cfe1d62362 (patch) | |
| tree | 84560912c4db0037d020b67517bf7e432e040e54 | |
| parent | 4f83c4b8513fe77ab27e1f8d07cf5c7d577a1fe2 (diff) | |
| download | rust-09a473ea7bd85361af971e2f66ec23cfe1d62362.tar.gz rust-09a473ea7bd85361af971e2f66ec23cfe1d62362.zip | |
Fix typo in references-and-borrowing docs
| -rw-r--r-- | src/doc/trpl/references-and-borrowing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md index c434371ce59..bb5adac5ebf 100644 --- a/src/doc/trpl/references-and-borrowing.md +++ b/src/doc/trpl/references-and-borrowing.md @@ -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 |
