-
Notifications
You must be signed in to change notification settings - Fork 540
Open
Labels
Language CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.Improvements to existing language which is correct but not clear, or missing examples, or the like.
Description
https://doc.rust-lang.org/stable/reference/expressions/match-expr.html says:
A match behaves differently depending on whether or not the scrutinee expression is a place expression or value expression.
And a little lower,
When the scrutinee expression is a place expression,
Let's click that link. It says:
The following contexts are place expression contexts:
...
The former implies it can be either, the latter implies it is always a place expression. I suspect that the wording of the latter is the one that's wrong.
fasterthanlimejasikpark
Metadata
Metadata
Assignees
Labels
Language CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.Improvements to existing language which is correct but not clear, or missing examples, or the like.