File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ fn times_two(n: uint) -> uint { n * 2 }
6060
6161fn main () {
6262 println! (" The map has {} entries." , * COUNT );
63- println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . get (& 0 ));
63+ println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . find (& 0 ) . unwrap ( ));
6464 println! (" A expensive calculation on a static results in: {}." , * NUMBER );
6565}
6666```
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ fn times_two(n: uint) -> uint { n * 2 }
5656
5757fn main() {
5858 println!("The map has {} entries.", *COUNT);
59- println!("The entry for `0` is \"{}\".", HASHMAP.get (&0));
59+ println!("The entry for `0` is \"{}\".", HASHMAP.find (&0).unwrap( ));
6060 println!("A expensive calculation on a static results in: {}.", *NUMBER);
6161}
6262```
You can’t perform that action at this time.
0 commit comments