From 3cb3f0983b67dd42b99115cd8d99e8fdfe71f9f0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 3 Feb 2014 10:12:31 +0100 Subject: [PATCH] Remove unnecessary trailing commas. --- src/doc/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 5122ac35602ce..a7696b4540560 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -624,7 +624,7 @@ origin.y += 1.0; // ERROR: assigning to immutable field # let mypoint = Point { x: 0.0, y: 0.0 }; match mypoint { Point { x: 0.0, y: yy } => println!("{}", yy), - Point { x: xx, y: yy } => println!("{} {}", xx, yy), + Point { x: xx, y: yy } => println!("{} {}", xx, yy) } ~~~~ @@ -639,7 +639,7 @@ reuses the field name as the binding name. # struct Point { x: f64, y: f64 } # let mypoint = Point { x: 0.0, y: 0.0 }; match mypoint { - Point { x, .. } => println!("{}", x), + Point { x, .. } => println!("{}", x) } ~~~