Skip to content

Commit 0904427

Browse files
Clarification of borrowck (#354)
1 parent 7284d09 commit 0904427

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/borrow-splitting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Splitting Borrows
22

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

99
```rust
1010
struct Foo {

0 commit comments

Comments
 (0)