Skip to content

Commit

Permalink
Added variable back into example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciarán Mooney committed Aug 27, 2020
1 parent 1b6c4b0 commit 41cf009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/match-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Multiple match patterns may be joined with the `|` operator. Each pattern will b
tested in left-to-right sequence until a successful match is found.

```rust
# let x = 9;
let x = 9;
let message = match x {
0 | 1 => "not many",
2 ..= 9 => "a few",
Expand Down

0 comments on commit 41cf009

Please sign in to comment.