Skip to content

Commit

Permalink
Merge pull request #2176 from ayeseeem/patch-1
Browse files Browse the repository at this point in the history
Remove optional commas from match arms in ch18-03
  • Loading branch information
steveklabnik authored Nov 28, 2019
2 parents d9a6beb + 86f0ae4 commit ef8bb56
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 ef8bb56

Please sign in to comment.