about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-12-29 12:03:39 -0800
committerNiko Matsakis <niko@alum.mit.edu>2012-01-03 13:13:52 -0800
commit72a3667eb30705826a99bfa2b9478c4037589dbc (patch)
tree52621f52c0d4ac8a0400d0e5c20bb52f999acef3 /src/libstd
parent43a9d50a74096c73f268f0600f6b1287a1cee880 (diff)
downloadrust-72a3667eb30705826a99bfa2b9478c4037589dbc.tar.gz
rust-72a3667eb30705826a99bfa2b9478c4037589dbc.zip
Allow tail expressions even in no_value blocks. Type checker
will guarantee they have unit type.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs
index dea9d187110..6b821dc6223 100644
--- a/src/libstd/rope.rs
+++ b/src/libstd/rope.rs
@@ -443,7 +443,7 @@ fn iter_chars(rope: rope, it: block(char)) {
     loop_chars(rope) {|x|
         it(x);
         ret true
-    }
+    };
 }
 
 /*