Skip to content

Commit 7d1065e

Browse files
committed
auto merge of #7122 : thestinger/rust/std, r=luqmana
2 parents c83bced + 2b13606 commit 7d1065e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/libstd/core.rc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,49 @@
1010

1111
/*!
1212

13-
# The Rust core library
13+
# The Rust standard library
1414

15-
The Rust core library provides runtime features required by the language,
15+
The Rust standard library provides runtime features required by the language,
1616
including the task scheduler and memory allocators, as well as library
1717
support for Rust built-in types, platform abstractions, and other commonly
1818
used features.
1919

20-
`core` includes modules corresponding to each of the integer types, each of
20+
`std` includes modules corresponding to each of the integer types, each of
2121
the floating point types, the `bool` type, tuples, characters, strings
2222
(`str`), vectors (`vec`), managed boxes (`managed`), owned boxes (`owned`),
23-
and unsafe and borrowed pointers (`ptr`). Additionally, `core` provides
23+
and unsafe and borrowed pointers (`ptr`). Additionally, `std` provides
2424
pervasive types (`option` and `result`), task creation and communication
2525
primitives (`task`, `comm`), platform abstractions (`os` and `path`), basic
2626
I/O abstractions (`io`), common traits (`kinds`, `ops`, `cmp`, `num`,
2727
`to_str`), and complete bindings to the C standard library (`libc`).
2828

29-
# Core injection and the Rust prelude
29+
# Standard library injection and the Rust prelude
3030

31-
`core` is imported at the topmost level of every crate by default, as
31+
`std` is imported at the topmost level of every crate by default, as
3232
if the first line of each crate was
3333

34-
extern mod core;
34+
extern mod std;
3535

36-
This means that the contents of core can be accessed from any context
37-
with the `core::` path prefix, as in `use core::vec`, `use core::task::spawn`,
36+
This means that the contents of std can be accessed from any context
37+
with the `std::` path prefix, as in `use std::vec`, `use std::task::spawn`,
3838
etc.
3939

40-
Additionally, `core` contains a `prelude` module that reexports many of the
41-
most common core modules, types and traits. The contents of the prelude are
40+
Additionally, `std` contains a `prelude` module that reexports many of the
41+
most common std modules, types and traits. The contents of the prelude are
4242
imported into every *module* by default. Implicitly, all modules behave as if
4343
they contained the following prologue:
4444

45-
use core::prelude::*;
45+
use std::prelude::*;
4646

4747
*/
4848

4949

5050
#[link(name = "std",
5151
vers = "0.7-pre",
5252
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
53-
url = "https://github.com/mozilla/rust/tree/master/src/libcore")];
53+
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
5454

55-
#[comment = "The Rust core library"];
55+
#[comment = "The Rust standard library"];
5656
#[license = "MIT/ASL2"];
5757
#[crate_type = "lib"];
5858

0 commit comments

Comments
 (0)