diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-31 17:05:20 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-31 17:05:20 -0800 |
| commit | e5d095d67e3926fa104ac495076fe9d4cd4f5562 (patch) | |
| tree | 07be94199b1062e4ba99be9c014178d26543a0aa /src/libstd/map.rs | |
| parent | 1f795ff3b0c0cac31c1d9fd2406d0d53e774683a (diff) | |
Change option::t to option
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
Diffstat (limited to 'src/libstd/map.rs')
| -rw-r--r-- | src/libstd/map.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index ed37318246b..3f53270ed10 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -75,14 +75,14 @@ iface map<K: copy, V: copy> { Get the value for the specified key. If the key does not exist in the map then returns none. */ - fn find(K) -> option::t<V>; + fn find(K) -> option<V>; /* Method: remove Remove and return a value from the map. If the key does not exist in the map then returns none. */ - fn remove(K) -> option::t<V>; + fn remove(K) -> option<V>; /* Method: items @@ -205,7 +205,7 @@ mod chained { } } - fn get<K: copy, V: copy>(tbl: t<K,V>, k: K) -> core::option::t<V> { + fn get<K: copy, V: copy>(tbl: t<K,V>, k: K) -> core::option<V> { alt search_tbl(tbl, k, tbl.hasher(k)) { not_found { ret core::option::none; @@ -221,7 +221,7 @@ mod chained { } } - fn remove<K: copy, V: copy>(tbl: t<K,V>, k: K) -> core::option::t<V> { + fn remove<K: copy, V: copy>(tbl: t<K,V>, k: K) -> core::option<V> { alt search_tbl(tbl, k, tbl.hasher(k)) { not_found { ret core::option::none; @@ -306,9 +306,9 @@ mod chained { fn get(k: K) -> V { option::get(get(self, k)) } - fn find(k: K) -> option::t<V> { get(self, k) } + fn find(k: K) -> option<V> { get(self, k) } - fn remove(k: K) -> option::t<V> { remove(self, k) } + fn remove(k: K) -> option<V> { remove(self, k) } fn items(blk: fn(K, V)) { items(self, blk); } |
