about summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2013-08-04 01:59:24 +0200
committerMarvin Löbel <loebel.marvin@gmail.com>2013-08-05 22:42:21 +0200
commit0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b (patch)
tree6dbb028659dbc0931ec23398e529549c84bba0a4 /src/libstd/task
parentd8b299d179653cbde783f62f70b5531dbaa5c5a6 (diff)
downloadrust-0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b.tar.gz
rust-0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b.zip
Updated std::Option, std::Either and std::Result
- Made naming schemes consistent between Option, Result and Either
- Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None)
- Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
Diffstat (limited to 'src/libstd/task')
-rw-r--r--src/libstd/task/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs
index f7a943f8d2f..225a4b8cfd2 100644
--- a/src/libstd/task/mod.rs
+++ b/src/libstd/task/mod.rs
@@ -926,7 +926,7 @@ fn test_named_task() {
         t.name(~"ada lovelace");
         do t.spawn {
             do with_task_name |name| {
-                assert!(name.get() == "ada lovelace");
+                assert!(name.unwrap() == "ada lovelace");
             }
         }
     }