diff options
| author | Andrea Canciani <ranma42@gmail.com> | 2015-06-04 15:11:36 +0200 |
|---|---|---|
| committer | Andrea Canciani <ranma42@gmail.com> | 2015-06-04 15:14:09 +0200 |
| commit | 2b13b4505865d89e2278f7211a314da47bd03841 (patch) | |
| tree | 550ee6ad243cfb0487ad6a4ba0bdb79fb7f06508 | |
| parent | 0aeb9f6f08c353c71d962d5cc7a231e73040ca3c (diff) | |
| download | rust-2b13b4505865d89e2278f7211a314da47bd03841.tar.gz rust-2b13b4505865d89e2278f7211a314da47bd03841.zip | |
Minor fix to docs of constraints on mut/non-mut references
The statement is not completely exact, because it is valid to have both 0 non-mutable references and 1 mutable reference. Instead, use the same wording as in mutability.md.
| -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 b69db228f27..775a6fbd293 100644 --- a/src/doc/trpl/references-and-borrowing.md +++ b/src/doc/trpl/references-and-borrowing.md @@ -155,7 +155,7 @@ First, any borrow must last for a smaller scope than the owner. Second, 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`) |
