Skip to content

Commit

Permalink
Clarification of borrowck (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior authored May 29, 2022
1 parent 7284d09 commit 0904427
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/borrow-splitting.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Splitting Borrows

The mutual exclusion property of mutable references can be very limiting when
working with a composite structure. The borrow checker understands some basic
stuff, but will fall over pretty easily. It does understand structs
sufficiently to know that it's possible to borrow disjoint fields of a struct
simultaneously. So this works today:
working with a composite structure. The borrow checker (a.k.a. borrowck)
understands some basic stuff, but will fall over pretty easily. It does
understand structs sufficiently to know that it's possible to borrow disjoint
fields of a struct simultaneously. So this works today:

```rust
struct Foo {
Expand Down

0 comments on commit 0904427

Please sign in to comment.