about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIsaac Andrade <isaac.nic@gmail.com>2016-05-03 08:29:44 -0700
committerIsaac Andrade <isaac.nic@gmail.com>2016-05-03 08:29:44 -0700
commitba6ce123bac969ee896a776699a8fad651a0a1cd (patch)
tree796544150ef89bca1eba708324a36f4db77bb8ab
parent8f76f931c243dce31e2121a265ab0501b19504d5 (diff)
downloadrust-ba6ce123bac969ee896a776699a8fad651a0a1cd.tar.gz
rust-ba6ce123bac969ee896a776699a8fad651a0a1cd.zip
Improve language.
-rw-r--r--src/doc/reference.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 87eede0b737..862e57d0160 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -846,15 +846,15 @@ extern crate std as ruststd; // linking to 'std' under another name
 ```
 
 When naming Rust crates, hyphens are disallowed. However, Cargo packages may
-make use of them. In such case, when `cargo.toml` doesn't specify a crate name,
+make use of them. In such case, when `Cargo.toml` doesn't specify a crate name,
 Cargo will transparently replace `-` with `_` (Refer to [RFC 940] for more
 details).
 
 Here is an example:
 
 ```{.ignore}
-// Importing the Cargo package hello-world/
-extern crate hello_world; // The crate name replaced the hyphen
+// Importing the Cargo package hello-world
+extern crate hello_world; // hyphen replaced with an underscore
 ```
 
 [RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md