Skip to content

Commit e904259

Browse files
committed
docs: Remove some 'extern mod std's from tutorial
1 parent 95d9c86 commit e904259

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

doc/tutorial.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,7 @@ and functions defined in it. If it has a `main` function, it can be
162162
compiled to an executable. Rust does not allow code that's not a
163163
declaration to appear at the top level of the file—all statements must
164164
live inside a function. Rust programs can also be compiled as
165-
libraries, and included in other programs. The `extern mod std`
166-
directive that appears at the top of many examples imports the
167-
[standard library][std], described in more detail [later
168-
on](#modules-and-crates).
169-
170-
[std]: http://doc.rust-lang.org/doc/std
165+
libraries, and included in other programs.
171166

172167
## Editing Rust code
173168

@@ -1586,8 +1581,7 @@ This code creates a closure that adds a given string to its argument,
15861581
returns it from a function, and then calls it:
15871582

15881583
~~~~
1589-
extern mod std;
1590-
1584+
# extern mod std;
15911585
fn mk_appender(suffix: ~str) -> fn@(~str) -> ~str {
15921586
return fn@(s: ~str) -> ~str { s + suffix };
15931587
}

0 commit comments

Comments
 (0)