Skip to content

Commit 62976cb

Browse files
committed
Merge pull request #4 from cmr/master
Some small fixes
2 parents e62a653 + b0c9a77 commit 62976cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lazy-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

66
A macro for declaring lazily evaluated statics in Rust.
77

@@ -60,7 +60,7 @@ fn times_two(n: uint) -> uint { n * 2 }
6060

6161
fn 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
```

src/lazy_static.rs

Lines changed: 1 addition & 1 deletion
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.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
```

0 commit comments

Comments
 (0)