From e5d095d67e3926fa104ac495076fe9d4cd4f5562 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Tue, 31 Jan 2012 17:05:20 -0800 Subject: 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). --- src/libstd/map.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libstd/map.rs') 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 { Get the value for the specified key. If the key does not exist in the map then returns none. */ - fn find(K) -> option::t; + fn find(K) -> option; /* 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; + fn remove(K) -> option; /* Method: items @@ -205,7 +205,7 @@ mod chained { } } - fn get(tbl: t, k: K) -> core::option::t { + fn get(tbl: t, k: K) -> core::option { alt search_tbl(tbl, k, tbl.hasher(k)) { not_found { ret core::option::none; @@ -221,7 +221,7 @@ mod chained { } } - fn remove(tbl: t, k: K) -> core::option::t { + fn remove(tbl: t, k: K) -> core::option { 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 { get(self, k) } + fn find(k: K) -> option { get(self, k) } - fn remove(k: K) -> option::t { remove(self, k) } + fn remove(k: K) -> option { remove(self, k) } fn items(blk: fn(K, V)) { items(self, blk); } -- cgit 1.4.1-3-g733a5