about summary refs log tree commit diff
path: root/src/libstd/fun_treemap.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/libstd/fun_treemap.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/libstd/fun_treemap.rs')
-rw-r--r--src/libstd/fun_treemap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/fun_treemap.rs b/src/libstd/fun_treemap.rs
index 046f565577a..34a393b6a8e 100644
--- a/src/libstd/fun_treemap.rs
+++ b/src/libstd/fun_treemap.rs
@@ -52,7 +52,7 @@ Insert a value into the map
 */
 fn insert<K: copy, V: copy>(m: treemap<K, V>, k: K, v: V) -> treemap<K, V> {
     @alt m {
-       @empty. { node(@k, @v, @empty, @empty) }
+       @empty { node(@k, @v, @empty, @empty) }
        @node(@kk, vv, left, right) {
          if k < kk {
              node(@kk, vv, insert(left, k, v), right)
@@ -70,7 +70,7 @@ Find a value based on the key
 */
 fn find<K, V: copy>(m: treemap<K, V>, k: K) -> option<V> {
     alt *m {
-      empty. { none }
+      empty { none }
       node(@kk, @v, left, right) {
         if k == kk {
             some(v)
@@ -86,7 +86,7 @@ Visit all pairs in the map in order.
 */
 fn traverse<K, V: copy>(m: treemap<K, V>, f: block(K, V)) {
     alt *m {
-      empty. { }
+      empty { }
       node(@k, @v, _, _) {
         // copy v to make aliases work out
         let v1 = v;