Skip to content

Commit 6ebba71

Browse files
committed
doc: Address feedback
1 parent 9b3d315 commit 6ebba71

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/libstd/lib.rs

+11-10
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
//! The Rust Standard Library provides the essential runtime
1414
//! functionality for building portable Rust software.
1515
//!
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)`.
2122
//!
2223
//! Furthermore, the standard library defines [The Rust
2324
//! Prelude](prelude/index.html), a small collection of items, mostly
@@ -58,7 +59,7 @@
5859
//! macro, and for converting from strings use the
5960
//! [`FromStr`](str/trait.FromStr.html) trait.
6061
//!
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
6263
//! [`Rc`][rc/index.html] type, and if further contained in a [`Cell`
6364
//! or `RefCell`](cell/index.html), may be mutated as well as shared.
6465
//! Likewise, in a concurrent setting it is common to pair an
@@ -79,12 +80,12 @@
7980
//! [TCP](net/struct.TcpStream.html),
8081
//! [UDP](net/struct.UdpSocket.html), are defined in the
8182
//! [`io`](io/index.html), [`fs`](fs/index.html), and
82-
//! [`net`](net/index.html) modulesu.
83+
//! [`net`](net/index.html) modules.
8384
//!
8485
//! 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
8889
//! [`mpsc`](sync/mpsc/index.html), which contains the channel types
8990
//! for message passing.
9091

0 commit comments

Comments
 (0)