Skip to content

Commit 68c4f2a

Browse files
committed
Added metadata
1 parent a0cf934 commit 68c4f2a

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
target
22
doc
33
Cargo.lock
4+
.cargo

Cargo.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
[package]
22

33
name = "lazy_static"
4-
version = "0.1.0"
4+
version = "0.1.1"
55
authors = [ "[email protected]" ]
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

931
name = "lazy_static"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.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
```

0 commit comments

Comments
 (0)