Skip to content

Commit b1f11e4

Browse files
authored
Remove "expression for a match arm" wording
It's unclear what this bullet means. If it means a match guard, that is covered in the line above. If it referred to the scrutinee, that would be wrong. I don't think it's possible to embed an expression inside of a match arm _pattern_. This came up in the [lang team triage meeting][meeting]. [meeting]: https://hackmd.io/JACzq-ssT4qtH0DS3B8nQQ?both#%E2%80%9CIntroduce-terminating-scope-for-tail-expressions-of-breakable-scopes%E2%80%9D-rust106493
1 parent 22882fb commit b1f11e4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/destructors.md

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ smallest scope that contains the expression and is one of the following:
162162
* The `else` block of an `if` expression.
163163
* The condition expression of an `if` or `while` expression, or a `match`
164164
guard.
165-
* The expression for a match arm.
166165
* The second operand of a [lazy boolean expression].
167166

168167
> **Notes**:

0 commit comments

Comments
 (0)