|
13 | 13 | //! The Rust Standard Library provides the essential runtime |
14 | 14 | //! functionality for building portable Rust software. |
15 | 15 | //! |
16 | | -//! It is linked to all Rust crates by default as though they |
17 | | -//! contained a crate-level `extern crate std` crate import. Therefore |
18 | | -//! the standard library can be accessed in `use` statements through |
19 | | -//! the path `std`, as in `use std::thread`, or in expressions through |
20 | | -//! the absolute path `::std`, as in `::std::thread::sleep_ms(100)`. |
| 16 | +//! The rust standard library is available to all rust crates by |
| 17 | +//! default, just as if contained an `extern crate std` import at the |
| 18 | +//! crate root. Therefore the standard library can be accessed in |
| 19 | +//! `use` statements through the path `std`, as in `use std::thread`, |
| 20 | +//! or in expressions through the absolute path `::std`, as in |
| 21 | +//! `::std::thread::sleep_ms(100)`. |
21 | 22 | //! |
22 | 23 | //! Furthermore, the standard library defines [The Rust |
23 | 24 | //! Prelude](prelude/index.html), a small collection of items, mostly |
|
58 | 59 | //! macro, and for converting from strings use the |
59 | 60 | //! [`FromStr`](str/trait.FromStr.html) trait. |
60 | 61 | //! |
61 | | -//! Data may be shared by placing it a reference-counted box, the |
| 62 | +//! Data may be shared by placing it in a reference-counted box or the |
62 | 63 | //! [`Rc`][rc/index.html] type, and if further contained in a [`Cell` |
63 | 64 | //! or `RefCell`](cell/index.html), may be mutated as well as shared. |
64 | 65 | //! Likewise, in a concurrent setting it is common to pair an |
|
79 | 80 | //! [TCP](net/struct.TcpStream.html), |
80 | 81 | //! [UDP](net/struct.UdpSocket.html), are defined in the |
81 | 82 | //! [`io`](io/index.html), [`fs`](fs/index.html), and |
82 | | -//! [`net`](net/index.html) modulesu. |
| 83 | +//! [`net`](net/index.html) modules. |
83 | 84 | //! |
84 | 85 | //! The [`thread`](thread/index.html) module contains Rust's threading |
85 | | -//! abstractions. [`sync`](sync/index.html) contains further, |
86 | | -//! primitive, shared memory types, including |
87 | | -//! [`atomic`](sync/atomic/index.html), and |
| 86 | +//! abstractions. [`sync`](sync/index.html) contains further |
| 87 | +//! primitive shared memory types, including |
| 88 | +//! [`atomic`](sync/atomic/index.html) and |
88 | 89 | //! [`mpsc`](sync/mpsc/index.html), which contains the channel types |
89 | 90 | //! for message passing. |
90 | 91 |
|
|
0 commit comments