Skip to content

Commit 76f06e4

Browse files
committed
Fix tests
1 parent 62976cb commit 76f06e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lazy_static.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn times_two(n: uint) -> uint { n * 2 }
5656
5757
fn main() {
5858
println!("The map has {} entries.", *COUNT);
59-
println!("The entry for `0` is \"{}\".", HASHMAP.find(&0).unwrap());
59+
println!("The entry for `0` is \"{}\".", HASHMAP.get(&0).unwrap());
6060
println!("A expensive calculation on a static results in: {}.", *NUMBER);
6161
}
6262
```

tests/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fn times_two(n: uint) -> uint {
2626
fn test_basic() {
2727
assert_eq!(STRING.as_slice(), "hello");
2828
assert_eq!(*NUMBER, 6);
29-
assert!(HASHMAP.find(&1).is_some());
30-
assert!(HASHMAP.find(&3).is_none());
29+
assert!(HASHMAP.get(&1).is_some());
30+
assert!(HASHMAP.get(&3).is_none());
3131
assert_eq!(ARRAY_BOXES.as_slice(), [box 1, box 2, box 3].as_slice());
3232
}
3333

0 commit comments

Comments
 (0)