From 86f0ae4831f24b3c429fa4845b900b4cad903a8b Mon Sep 17 00:00:00 2001 From: ayeseeem Date: Thu, 28 Nov 2019 07:46:33 +0000 Subject: [PATCH] Remove optional commas from match arms in ch18-03 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. --- src/ch18-03-pattern-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {}",