Skip to content

Commit ef8bb56

Browse files
authored
Merge pull request #2176 from ayeseeem/patch-1
Remove optional commas from match arms in ch18-03
2 parents d9a6beb + 86f0ae4 commit ef8bb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch18-03-pattern-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn main() {
281281
match msg {
282282
Message::Quit => {
283283
println!("The Quit variant has no data to destructure.")
284-
},
284+
}
285285
Message::Move { x, y } => {
286286
println!(
287287
"Move in the x direction {} and in the y direction {}",
@@ -356,7 +356,7 @@ fn main() {
356356
g,
357357
b
358358
)
359-
},
359+
}
360360
Message::ChangeColor(Color::Hsv(h, s, v)) => {
361361
println!(
362362
"Change the color to hue {}, saturation {}, and value {}",

0 commit comments

Comments
 (0)