Skip to content

Commit d860a66

Browse files
committed
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.
2 parents 5550ede + 4aff964 commit d860a66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/guide.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,8 +2804,7 @@ be named, by convention.
28042804
Next, we added an `extern crate modules` to the top of our `src/main.rs`. This,
28052805
as you can guess, lets Rust know that our crate relies on another, external
28062806
crate. We also had to modify our call to `print_hello`: now that it's in
2807-
another crate, we need to first specify the crate, then the module inside of it,
2808-
then the function name.
2807+
another crate, we need to specify that crate first.
28092808

28102809
This doesn't _quite_ work yet. Try it:
28112810

0 commit comments

Comments
 (0)