Skip to content

Commit 4aff964

Browse files
committed
doc: remove misleading/confusing info
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.
1 parent 16d538c commit 4aff964

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
@@ -2811,8 +2811,7 @@ be named, by convention.
28112811
Next, we added an `extern crate modules` to the top of our `src/main.rs`. This,
28122812
as you can guess, lets Rust know that our crate relies on another, external
28132813
crate. We also had to modify our call to `print_hello`: now that it's in
2814-
another crate, we need to first specify the crate, then the module inside of it,
2815-
then the function name.
2814+
another crate, we need to specify that crate first.
28162815

28172816
This doesn't _quite_ work yet. Try it:
28182817

0 commit comments

Comments
 (0)