Skip to content

Commit

Permalink
Merge pull request #880 from ciaranmooney/fix/match-example
Browse files Browse the repository at this point in the history
Added variable back into example.
  • Loading branch information
Havvy committed Aug 28, 2020
2 parents 1b6c4b0 + 41cf009 commit d27d801
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 d27d801

Please sign in to comment.