auto merge of #16724 : tshepang/rust/misleading, r=brson

We have to specify the module and the function name in the example where
the module shares a crate with the executable as well, so remove the
redundant (and potentially confusing) mention.
This commit is contained in:
bors 2014-08-27 07:46:17 +00:00
commit d860a667e7

View File

@ -2804,8 +2804,7 @@ be named, by convention.
Next, we added an `extern crate modules` to the top of our `src/main.rs`. This, Next, we added an `extern crate modules` to the top of our `src/main.rs`. This,
as you can guess, lets Rust know that our crate relies on another, external as you can guess, lets Rust know that our crate relies on another, external
crate. We also had to modify our call to `print_hello`: now that it's in crate. We also had to modify our call to `print_hello`: now that it's in
another crate, we need to first specify the crate, then the module inside of it, another crate, we need to specify that crate first.
then the function name.
This doesn't _quite_ work yet. Try it: This doesn't _quite_ work yet. Try it: