File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11target
22doc
33Cargo.lock
4+ .cargo
Original file line number Diff line number Diff line change 11[package ]
22
33name = " lazy_static"
4- version = " 0.1.0 "
4+ version = " 0.1.1 "
55authors = [ " loebel.marvin@gmail.com" ]
66
7+
8+ # A short blurb about the package. This is not rendered in any format when
9+ # uploaded to crates.io (aka this is not markdown)
10+ description = " A macro for declaring lazily evaluated statics in Rust."
11+
12+ # These URLs point to more information about the repository
13+ documentation = " http://rust-ci.org/Kimundi/lazy-static.rs/doc/lazy_static/"
14+ repository = " https://github.com/Kimundi/lazy-static.rs"
15+
16+ # This points to a file in the repository (relative to this Cargo.toml). The
17+ # contents of this file are stored and indexed in the registry.
18+ readme = " README.md"
19+
20+ # This is a small list of keywords used to categorize and search for this
21+ # package.
22+ keywords = [" macro" , " lazy" , " static" ]
23+
24+ # This is a string description of the license for this package. Currently
25+ # crates.io will validate the license provided against a whitelist of known
26+ # licenses. Multiple licenses can be separated with a `/`
27+ license = " MIT"
28+
729[lib ]
830
931name = " lazy_static"
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 . find (& 0 ). unwrap ());
63+ println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . get (& 0 ). unwrap ());
6464 println! (" A expensive calculation on a static results in: {}." , * NUMBER );
6565}
6666```
You can’t perform that action at this time.
0 commit comments