Skip to content

Commit db88872

Browse files
mbrubeckalexcrichton
authored andcommitted
---
yaml --- r: 110428 b: refs/heads/try c: c1e52c7 h: refs/heads/master v: v3
1 parent d2677a5 commit db88872

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: e415c25bcd81dc1f9a5a3d25d9b48ed2d545336b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5-
refs/heads/try: 2ae292473e2b96ea8429dff5f2f3581bc026582c
5+
refs/heads/try: c1e52c71cae901c25b2cea7b47c834501e09ecb6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/doc/tutorial.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,8 +2600,6 @@ As you can see, your module hierarchy is now three modules deep: There is the cr
26002600
function, and the module `farm`. The module `farm` also contains two functions and a third module `barn`,
26012601
which contains a function `hay`.
26022602

2603-
(In case you already stumbled over `extern crate`: It isn't directly related to a bare `mod`, we'll get to it later. )
2604-
26052603
## Paths and visibility
26062604

26072605
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() {
30503048
}
30513049
~~~
30523050

3053-
Despite its name, `extern crate` is a distinct construct from regular `mod` declarations:
30543051
A statement of the form `extern crate foo;` will cause `rustc` to search for the crate `foo`,
30553052
and if it finds a matching binary it lets you use it from inside your crate.
30563053

0 commit comments

Comments
 (0)