Skip to content

Commit

Permalink
disambiguate sentence
Browse files Browse the repository at this point in the history
The phrase 'may not' could mean 'might not' or 'is not allowed to'.
  • Loading branch information
kklibo committed Jun 3, 2021
1 parent 9dd2000 commit 4e932f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ let z = &x;

In this case, borrowing `x` mutably is not possible, because `x` is not `mut`.
But at the same time, borrowing `x` immutably would make the assignment illegal,
because a `& &mut` reference may not be unique, so it cannot safely be used to
because a `& &mut` reference might not be unique, so it cannot safely be used to
modify a value. So a unique immutable borrow is used: it borrows `x` immutably,
but like a mutable borrow, it must be unique. In the above example, uncommenting
the declaration of `y` will produce an error because it would violate the
Expand Down

0 comments on commit 4e932f6

Please sign in to comment.