From 04a2887f8791bb080b4e76a55949a7c1954dbb97 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 18 Jan 2012 22:37:22 -0800 Subject: Remove '.' after nullary tags in patterns Does what it says on the tin. The next commit will remove support for this syntax. --- src/libstd/smallintmap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/smallintmap.rs') diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index ca618baa554..36c9e1281c2 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -38,7 +38,7 @@ fn insert(m: smallintmap, key: uint, val: T) { Function: find Get the value for the specified key. If the key does not exist -in the map then returns none. +in the map then returns none */ fn find(m: smallintmap, key: uint) -> option::t { if key < vec::len::>(m.v) { ret m.v[key]; } @@ -56,7 +56,7 @@ If the key does not exist in the map */ fn get(m: smallintmap, key: uint) -> T { alt find(m, key) { - none. { #error("smallintmap::get(): key not present"); fail; } + none { #error("smallintmap::get(): key not present"); fail; } some(v) { ret v; } } } @@ -117,7 +117,7 @@ impl of map::map for smallintmap { some(elt) { it(idx, elt); } - none. { } + none { } } idx += 1u; } -- cgit 1.4.1-3-g733a5