match isn't really an operator. Fixes #2859

This commit is contained in:
Carol (Nichols || Goulding) 2022-01-03 21:20:55 -05:00 committed by Carol (Nichols || Goulding)
parent 40c98a5118
commit 9e97ca7ba8
3 changed files with 6 additions and 5 deletions

View File

@ -406,9 +406,9 @@ just this when used with enums: it will run different code depending on which
variant of the enum it has, and that code can use the data inside the matching
value.
## The `match` Control Flow Operator
## The `match` Control Flow Construct
Rust has an extremely powerful control flow operator called `match` that allows
Rust has an extremely powerful control flow construct called `match` that allows
you to compare a value against a series of patterns and then execute code based
on which pattern matches. Patterns can be made up of literal values, variable
names, wildcards, and many other things; Chapter 18 covers all the different

View File

@ -32,7 +32,7 @@
- [Enums and Pattern Matching](ch06-00-enums.md)
- [Defining an Enum](ch06-01-defining-an-enum.md)
- [The `match` Control Flow Operator](ch06-02-match.md)
- [The `match` Control Flow Construct](ch06-02-match.md)
- [Concise Control Flow with `if let`](ch06-03-if-let.md)
## Basic Rust Literacy

View File

@ -1,6 +1,7 @@
## The `match` Control Flow Operator
<a id="the-match-control-flow-operator"></a>
## The `match` Control Flow Construct
Rust has an extremely powerful control flow operator called `match` that allows
Rust has an extremely powerful control flow construct called `match` that allows
you to compare a value against a series of patterns and then execute code based
on which pattern matches. Patterns can be made up of literal values, variable
names, wildcards, and many other things; Chapter 18 covers all the different