diff options
| author | Andrew Straw <strawman@astraw.com> | 2015-04-27 07:18:26 -0400 |
|---|---|---|
| committer | Andrew Straw <strawman@astraw.com> | 2015-05-08 06:12:59 +0200 |
| commit | 391d14802eaa8ef694ebbb70d785227156e4bf32 (patch) | |
| tree | 3ea9b711158b48448ae8021cb988aa4269f82557 /src | |
| parent | b402c43f088882db8a03bfcbb5eb8429ef7def0e (diff) | |
| download | rust-391d14802eaa8ef694ebbb70d785227156e4bf32.tar.gz rust-391d14802eaa8ef694ebbb70d785227156e4bf32.zip | |
fix logic when describing kinds of borrows
If you have 0 references (`&T`) to a resource, presumably, you could have a mutable reference (`&mut T`). So this only start to make sense at having 1 reference to a resource.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/mutability.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/mutability.md b/src/doc/trpl/mutability.md index 816bfb17970..435407a8a96 100644 --- a/src/doc/trpl/mutability.md +++ b/src/doc/trpl/mutability.md @@ -85,7 +85,7 @@ safety, and the mechanism by which Rust guarantees it, the > You may have one or the other of these two kinds of borrows, but not both at > the same time: > -> * 0 to N references (`&T`) to a resource. +> * one or more references (`&T`) to a resource. > * exactly one mutable reference (`&mut T`) [ownership]: ownership.html |
