diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-21 19:37:57 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-23 17:15:00 -0700 |
| commit | 4a78f9b16620489855da93c19be56f59431416f6 (patch) | |
| tree | 4b164738698203f474003682d5f0a5e23aa13377 /src/libstd/map.rs | |
| parent | 92752a462a055d6478bd96dab37a740514992106 (diff) | |
| download | rust-4a78f9b16620489855da93c19be56f59431416f6.tar.gz rust-4a78f9b16620489855da93c19be56f59431416f6.zip | |
core: Demode option
Diffstat (limited to 'src/libstd/map.rs')
| -rw-r--r-- | src/libstd/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index adaab0050bb..9bdf6e15ee5 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -730,9 +730,9 @@ mod tests { fn test_find() { let key = ~"k"; let map = map::HashMap::<~str, ~str>(); - assert (option::is_none(map.find(key))); + assert (option::is_none(&map.find(key))); map.insert(key, ~"val"); - assert (option::get(map.find(key)) == ~"val"); + assert (option::get(&map.find(key)) == ~"val"); } #[test] |
