Skip to content

Commit

Permalink
Remove optional commas from match arms in ch18-03
Browse files Browse the repository at this point in the history
Removes a couple of optional commas from the match arms, for consistency within the examples, which in other arms do not have (optional) commas. Matches `rustfmt` behaviour.
  • Loading branch information
ayeseeem authored Nov 28, 2019
1 parent 81ebaa2 commit 86f0ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ fn main() {
match msg {
Message::Quit => {
println!("The Quit variant has no data to destructure.")
},
}
Message::Move { x, y } => {
println!(
"Move in the x direction {} and in the y direction {}",
Expand Down Expand Up @@ -356,7 +356,7 @@ fn main() {
g,
b
)
},
}
Message::ChangeColor(Color::Hsv(h, s, v)) => {
println!(
"Change the color to hue {}, saturation {}, and value {}",
Expand Down

0 comments on commit 86f0ae4

Please sign in to comment.