Skip to content

Commit 2b13b45

Browse files
committed
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.
1 parent 0aeb9f6 commit 2b13b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ First, any borrow must last for a smaller scope than the owner. Second, you may
155155
have one or the other of these two kinds of borrows, but not both at the same
156156
time:
157157

158-
* 0 to N references (`&T`) to a resource.
158+
* one or more references (`&T`) to a resource.
159159
* exactly one mutable reference (`&mut T`)
160160

161161

0 commit comments

Comments
 (0)