Skip to content

Commit e7b584c

Browse files
authored
Rollup merge of rust-lang#57179 - Xaeroxe:patch-1, r=QuietMisdreavus
Update std/lib.rs docs to reflect Rust 2018 usage Fixes rust-lang#56544 This paragraph was written for Rust 2015. Since 2018 has been stable for a while I think we can update it.
2 parents 19f8958 + 4781c6f commit e7b584c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libstd/lib.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
//! primitives](#primitives), [standard macros](#macros), [I/O] and
88
//! [multithreading], among [many other things][other].
99
//!
10-
//! `std` is available to all Rust crates by default, just as if each one
11-
//! contained an `extern crate std;` import at the [crate root]. Therefore the
10+
//! `std` is available to all Rust crates by default. Therefore the
1211
//! standard library can be accessed in [`use`] statements through the path
13-
//! `std`, as in [`use std::env`], or in expressions through the absolute path
14-
//! `::std`, as in [`::std::env::args`].
12+
//! `std`, as in [`use std::env`].
1513
//!
1614
//! # How to read this documentation
1715
//!
@@ -157,7 +155,6 @@
157155
//! [TCP]: net/struct.TcpStream.html
158156
//! [The Rust Prelude]: prelude/index.html
159157
//! [UDP]: net/struct.UdpSocket.html
160-
//! [`::std::env::args`]: env/fn.args.html
161158
//! [`Arc`]: sync/struct.Arc.html
162159
//! [owned slice]: boxed/index.html
163160
//! [`Cell`]: cell/struct.Cell.html
@@ -191,7 +188,6 @@
191188
//! [`thread`]: thread/index.html
192189
//! [`use std::env`]: env/index.html
193190
//! [`use`]: ../book/ch07-02-modules-and-use-to-control-scope-and-privacy.html#the-use-keyword-to-bring-paths-into-a-scope
194-
//! [crate root]: ../book/ch07-01-packages-and-crates-for-making-libraries-and-executables.html
195191
//! [crates.io]: https://crates.io
196192
//! [deref-coercions]: ../book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods
197193
//! [files]: fs/struct.File.html

0 commit comments

Comments
 (0)