diff --git a/src/ch18-03-pattern-syntax.md b/src/ch18-03-pattern-syntax.md index 31b96a88b3..ccbcbd9ad4 100644 --- a/src/ch18-03-pattern-syntax.md +++ b/src/ch18-03-pattern-syntax.md @@ -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 {}",