Skip to content

Commit ea11029

Browse files
committed
Updated outdated text.
1 parent 83cb1a0 commit ea11029

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/destructors.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,8 @@ expression which is one of the following:
376376
* The final expression of any extending [block expression].
377377
* The arguments to [tuple struct][tuple struct] and [tuple variant][tuple variant] constructors.
378378

379-
So the borrow expressions in `&mut 0`, `(&1, &mut 2)`, and `Some { 0: &mut 3 }`
380-
are all extending expressions. The borrows in `&0 + &1` and `Some(&mut 0)` are
381-
not: the latter is syntactically a function call expression.
379+
So the borrow expressions in `&mut 0`, `(&1, &mut 2)`, and `Some(&mut 3)`
380+
are all extending expressions. The borrows in `&0 + &1` and `f(&mut 0)` are not.
382381

383382
The operand of any extending borrow expression has its temporary scope
384383
extended.

0 commit comments

Comments
 (0)