File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11lazy-static.rs
22==============
33
4- ![ travis-ci status ] ( https://travis-ci.org/Kimundi/lazy-static.rs.svg ?branch=master )
4+ [ ![ Travis-CI Status ] ( https://travis-ci.org/Kimundi/lazy-static.rs.png ?branch=master )] ( https://travis-ci.org/Kimundi/lazy-static.rs )
55
66A macro for declaring lazily evaluated statics in Rust.
77
@@ -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