@@ -1480,7 +1480,6 @@ This code creates a closure that adds a given string to its argument,
1480
1480
returns it from a function, and then calls it:
1481
1481
1482
1482
~~~~
1483
- # extern mod std;
1484
1483
fn mk_appender(suffix: ~str) -> @fn(~str) -> ~str {
1485
1484
// The compiler knows that we intend this closure to be of type @fn
1486
1485
return |s| s + suffix;
@@ -2292,7 +2291,7 @@ let nonsense = mycircle.radius() * mycircle.area();
2292
2291
2293
2292
## Deriving implementations for traits
2294
2293
2295
- A small number of traits in ` std ` and ` std ` can have implementations
2294
+ A small number of traits in ` std ` and ` extra ` can have implementations
2296
2295
that can be automatically derived. These instances are specified by
2297
2296
placing the ` deriving ` attribute on a data type declaration. For
2298
2297
example, the following will mean that ` Circle ` has an implementation
@@ -2541,9 +2540,9 @@ as well as an inscrutable string of alphanumerics. These are both
2541
2540
part of Rust's library versioning scheme. The alphanumerics are
2542
2541
a hash representing the crate metadata.
2543
2542
2544
- ## The std library
2543
+ ## The standard library
2545
2544
2546
- The Rust std library provides runtime features required by the language,
2545
+ The Rust standard library provides runtime features required by the language,
2547
2546
including the task scheduler and memory allocators, as well as library
2548
2547
support for Rust built-in types, platform abstractions, and other commonly
2549
2548
used features.
@@ -2559,7 +2558,7 @@ I/O abstractions ([`io`]), [containers] like [`hashmap`],
2559
2558
common traits ([ ` kinds ` ] , [ ` ops ` ] , [ ` cmp ` ] , [ ` num ` ] ,
2560
2559
[ ` to_str ` ] , [ ` clone ` ] ), and complete bindings to the C standard library ([ ` libc ` ] ).
2561
2560
2562
- ### Core injection and the Rust prelude
2561
+ ### Standard Library injection and the Rust prelude
2563
2562
2564
2563
` std ` is imported at the topmost level of every crate by default, as
2565
2564
if the first line of each crate was
@@ -2571,7 +2570,7 @@ with the `std::` path prefix, as in `use std::vec`, `use std::task::spawn`,
2571
2570
etc.
2572
2571
2573
2572
Additionally, ` std ` contains a ` prelude ` module that reexports many of the
2574
- most common std modules, types and traits. The contents of the prelude are
2573
+ most common standard modules, types and traits. The contents of the prelude are
2575
2574
imported into every * module* by default. Implicitly, all modules behave as if
2576
2575
they contained the following prologue:
2577
2576
0 commit comments