Skip to content

Commit f006e86

Browse files
committed
rollup merge of #17992 : jkleint/guide-double-borrow
2 parents 030c79c + ed7d1be commit f006e86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/doc/guide.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3537,9 +3537,8 @@ restriction:
35373537

35383538
1. If the borrow is immutable, you may read the data the pointer points to.
35393539
2. If the borrow is mutable, you may read and write the data the pointer points to.
3540-
3. You may lend the pointer to someone else in an immutable fashion, **BUT**
3541-
4. When you do so, they must return it to you before you must give your own
3542-
borrow back.
3540+
3. You may lend the pointer to someone else, **BUT**
3541+
4. When you do so, they must return it before you can give your own borrow back.
35433542

35443543
This last requirement can seem odd, but it also makes sense. If you have to
35453544
return something, and you've lent it to someone, they need to give it back to

0 commit comments

Comments
 (0)