Skip to content

Commit

Permalink
Adding trailing comma
Browse files Browse the repository at this point in the history
The trailing comma was missing from the final variant of the Color enum.
I thought it would be nice to add it for consistency.
  • Loading branch information
Plotnus authored Apr 3, 2019
1 parent b93ec30 commit 5c57d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ colors in the `ChangeColor` message, as shown in Listing 18-16.
```rust
enum Color {
Rgb(i32, i32, i32),
Hsv(i32, i32, i32)
Hsv(i32, i32, i32),
}

enum Message {
Expand Down

0 comments on commit 5c57d8e

Please sign in to comment.