Skip to content

Commit e8ddad1

Browse files
committed
Adds trailing comma
1 parent 8a6342f commit e8ddad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,13 +1140,13 @@ You can have any number of values in an enum:
11401140
```{rust}
11411141
enum OptionalColor {
11421142
Color(int, int, int),
1143-
Missing
1143+
Missing,
11441144
}
11451145
```
11461146

11471147
Enums with values are quite useful, but as I mentioned, they're even more
11481148
useful when they're generic across types. But before we get to generics, let's
1149-
talk about how to fix this big `if`/`else` statements we've been writing. We'll
1149+
talk about how to fix these big `if`/`else` statements we've been writing. We'll
11501150
do that with `match`.
11511151

11521152
# Match

0 commit comments

Comments
 (0)