diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2014-04-02 16:54:33 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-03 13:43:24 -0700 |
| commit | c1e52c71cae901c25b2cea7b47c834501e09ecb6 (patch) | |
| tree | 8f4453b745291902512a3dcf2811270d07d40856 /src/doc/tutorial.md | |
| parent | 2ae292473e2b96ea8429dff5f2f3581bc026582c (diff) | |
| download | rust-c1e52c71cae901c25b2cea7b47c834501e09ecb6.tar.gz rust-c1e52c71cae901c25b2cea7b47c834501e09ecb6.zip | |
`extern crate` and `mod` are not easily confused
Remove some statements that used to refer to similarities between `mod` and `extern mod`, before the latter was renamed to `extern crate`.
Diffstat (limited to 'src/doc/tutorial.md')
| -rw-r--r-- | src/doc/tutorial.md | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 62e0fabdc05..65b3def8daf 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2600,8 +2600,6 @@ As you can see, your module hierarchy is now three modules deep: There is the cr function, and the module `farm`. The module `farm` also contains two functions and a third module `barn`, which contains a function `hay`. -(In case you already stumbled over `extern crate`: It isn't directly related to a bare `mod`, we'll get to it later. ) - ## Paths and visibility We've now defined a nice module hierarchy. But how do we access the items in it from our `main` function? @@ -3050,7 +3048,6 @@ fn main() { } ~~~ -Despite its name, `extern crate` is a distinct construct from regular `mod` declarations: A statement of the form `extern crate foo;` will cause `rustc` to search for the crate `foo`, and if it finds a matching binary it lets you use it from inside your crate. |
