diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 22:37:22 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 23:17:34 -0800 |
| commit | 04a2887f8791bb080b4e76a55949a7c1954dbb97 (patch) | |
| tree | f072b2cc1e0b41270041a3a10a4fc313d3fa1a89 /src/libstd/smallintmap.rs | |
| parent | ca7cfbe3d0251766217e5d4e559903e655e7549b (diff) | |
| download | rust-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/smallintmap.rs')
| -rw-r--r-- | src/libstd/smallintmap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<T: copy>(m: smallintmap<T>, 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<T: copy>(m: smallintmap<T>, key: uint) -> option::t<T> { if key < vec::len::<option::t<T>>(m.v) { ret m.v[key]; } @@ -56,7 +56,7 @@ If the key does not exist in the map */ fn get<T: copy>(m: smallintmap<T>, 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 <V: copy> of map::map<uint, V> for smallintmap<V> { some(elt) { it(idx, elt); } - none. { } + none { } } idx += 1u; } |
