about summary refs log tree commit diff
path: root/src/test/bench/99bob-pattern.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 22:37:22 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 23:17:34 -0800
commit04a2887f8791bb080b4e76a55949a7c1954dbb97 (patch)
treef072b2cc1e0b41270041a3a10a4fc313d3fa1a89 /src/test/bench/99bob-pattern.rs
parentca7cfbe3d0251766217e5d4e559903e655e7549b (diff)
downloadrust-04a2887f8791bb080b4e76a55949a7c1954dbb97.tar.gz
rust-04a2887f8791bb080b4e76a55949a7c1954dbb97.zip
Remove '.' after nullary tags in patterns
Does what it says on the tin.

The next commit will remove support for this syntax.
Diffstat (limited to 'src/test/bench/99bob-pattern.rs')
-rw-r--r--src/test/bench/99bob-pattern.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/bench/99bob-pattern.rs b/src/test/bench/99bob-pattern.rs
index 8bc16ec5d3a..9c068c6c747 100644
--- a/src/test/bench/99bob-pattern.rs
+++ b/src/test/bench/99bob-pattern.rs
@@ -12,13 +12,13 @@ tag bottle { none; dual; single; multiple(int); }
 
 fn show(b: bottle) {
     alt b {
-      none. {
+      none {
         #debug("No more bottles of beer on the wall, \
                 no more bottles of beer,");
         #debug("Go to the store and buy some more, \
                 99 bottles of beer on the wall.");
       }
-      single. {
+      single {
         #debug("1 bottle of beer on the wall, 1 bottle of beer,");
         #debug("Take one down and pass it around, \
                 no more bottles of beer on the wall.");
@@ -38,8 +38,8 @@ fn show(b: bottle) {
 
 fn next(b: bottle) -> bottle {
     alt b {
-      none. { ret none; }
-      single. { ret none; }
+      none { ret none; }
+      single { ret none; }
       dual. { ret single; }
       multiple(3) { ret dual; }
       multiple(n) { ret multiple(n - 1); }
@@ -48,7 +48,7 @@ fn next(b: bottle) -> bottle {
 
 
 // Won't need this when tags can be compared with ==
-fn more(b: bottle) -> bool { alt b { none. { ret false; } _ { ret true; } } }
+fn more(b: bottle) -> bool { alt b { none { ret false; } _ { ret true; } } }
 
 fn main() {
     let b: bottle = multiple(99);