You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The opening section of the std documentation says this:
//! `std` is available to all Rust crates by default, just as if each one
//! contained an `extern crate std;` import at the [crate root]. Therefore the
//! standard library can be accessed in [`use`] statements through the path
//! `std`, as in [`use std::env`], or in expressions through the absolute path
//! `::std`, as in [`::std::env::args`].
This information, while accurate in both editions, is unidiomatic in the 2018 edition, in that it refers to extern crate syntax and double colon absolute paths. Perhaps this information could be reworded to be expressed in a more neutral way.
The text was updated successfully, but these errors were encountered:
withoutboats
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Dec 5, 2018
Update std/lib.rs docs to reflect Rust 2018 usage
Fixesrust-lang#56544
This paragraph was written for Rust 2015. Since 2018 has been stable for a while I think we can update it.
The opening section of the std documentation says this:
This information, while accurate in both editions, is unidiomatic in the 2018 edition, in that it refers to extern crate syntax and double colon absolute paths. Perhaps this information could be reworded to be expressed in a more neutral way.
The text was updated successfully, but these errors were encountered: