about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-03 02:46:32 -0800
committerbors <bors@rust-lang.org>2014-02-03 02:46:32 -0800
commitbe4fc638092bf896c5c6c0672136b83b71e491ee (patch)
tree2cf8e5cf991fe363b79babf07c83d213f9be82cc
parent62caad2c1addd49c350bad98e67f525a5cc82469 (diff)
parent3cb3f0983b67dd42b99115cd8d99e8fdfe71f9f0 (diff)
downloadrust-be4fc638092bf896c5c6c0672136b83b71e491ee.tar.gz
rust-be4fc638092bf896c5c6c0672136b83b71e491ee.zip
auto merge of #12013 : Hywan/rust/doc, r=sanxiyn
-rw-r--r--src/doc/tutorial.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 5122ac35602..a7696b45405 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)
 }
 ~~~