File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
- refs/heads/dist-snap: 95d9c8699c252f3dfe1836e93a47718d14983165
10
+ refs/heads/dist-snap: e90425999e59983f5140a070c250968c265e2456
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -162,12 +162,7 @@ and functions defined in it. If it has a `main` function, it can be
162
162
compiled to an executable. Rust does not allow code that's not a
163
163
declaration to appear at the top level of the file—all statements must
164
164
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.
171
166
172
167
## Editing Rust code
173
168
@@ -1586,8 +1581,7 @@ This code creates a closure that adds a given string to its argument,
1586
1581
returns it from a function, and then calls it:
1587
1582
1588
1583
~~~~
1589
- extern mod std;
1590
-
1584
+ # extern mod std;
1591
1585
fn mk_appender(suffix: ~str) -> fn@(~str) -> ~str {
1592
1586
return fn@(s: ~str) -> ~str { s + suffix };
1593
1587
}
You can’t perform that action at this time.
0 commit comments