Skip to content

Commit

Permalink
Minor fix to docs of constraints on mut/non-mut references
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ranma42 committed Jun 4, 2015
1 parent 0aeb9f6 commit 2b13b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/references-and-borrowing.md
Expand Up @@ -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`)


Expand Down

0 comments on commit 2b13b45

Please sign in to comment.