]> git.lizzy.rs Git - rust.git/commitdiff
Minor fix to docs of constraints on mut/non-mut references
authorAndrea Canciani <ranma42@gmail.com>
Thu, 4 Jun 2015 13:11:36 +0000 (15:11 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Thu, 4 Jun 2015 13:14:09 +0000 (15:14 +0200)
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.

src/doc/trpl/references-and-borrowing.md

index b69db228f272407d9fd69494fbbc6b9270e38226..775a6fbd293589337529cad99097d18e00bd2b7f 100644 (file)
@@ -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`)