Skip to content

Commit 408ca09

Browse files
committed
---
yaml --- r: 24470 b: refs/heads/master c: e904259 h: refs/heads/master v: v3
1 parent f52e643 commit 408ca09

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 95d9c8699c252f3dfe1836e93a47718d14983165
2+
refs/heads/master: e90425999e59983f5140a070c250968c265e2456
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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)