mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 05:32:16 -04:00
Merge pull request #2176 from ayeseeem/patch-1
Remove optional commas from match arms in ch18-03
This commit is contained in:
@@ -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 {}",
|
||||
@@ -356,7 +356,7 @@ fn main() {
|
||||
g,
|
||||
b
|
||||
)
|
||||
},
|
||||
}
|
||||
Message::ChangeColor(Color::Hsv(h, s, v)) => {
|
||||
println!(
|
||||
"Change the color to hue {}, saturation {}, and value {}",
|
||||
|
||||
Reference in New Issue
Block a user