Rollup merge of #28281 - rutsky:patch-2, r=steveklabnik
r? @steveklabnik
This commit is contained in:
commit
eb2e00a0fd
2 changed files with 4 additions and 4 deletions
|
|
@ -85,8 +85,8 @@ philosophy, memory safety, and the mechanism by which Rust guarantees it, the
|
|||
> You may have one or the other of these two kinds of borrows, but not both at
|
||||
> the same time:
|
||||
>
|
||||
> * one or more references (`&T`) to a resource.
|
||||
> * exactly one mutable reference (`&mut T`)
|
||||
> * one or more references (`&T`) to a resource,
|
||||
> * exactly one mutable reference (`&mut T`).
|
||||
|
||||
[ownership]: ownership.html
|
||||
[borrowing]: references-and-borrowing.html#borrowing
|
||||
|
|
|
|||
|
|
@ -159,8 +159,8 @@ First, any borrow must last for a scope no greater than that of the owner.
|
|||
Second, you may have one or the other of these two kinds of borrows, but not
|
||||
both at the same time:
|
||||
|
||||
* one or more references (`&T`) to a resource.
|
||||
* exactly one mutable reference (`&mut T`)
|
||||
* one or more references (`&T`) to a resource,
|
||||
* exactly one mutable reference (`&mut T`).
|
||||
|
||||
|
||||
You may notice that this is very similar, though not exactly the same as,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue