Skip to content

Commit fc251f9

Browse files
Centrilehuss
andauthored
Apply suggestions from code review
Co-Authored-By: ehuss <[email protected]>
1 parent 15fc5d5 commit fc251f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/items/extern-crates.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ External crates imported with `extern crate` in the root module or provided to
4444
the compiler (as with the `--extern` flag with `rustc`) are added to the
4545
"extern prelude". Crates in the extern prelude are in scope in the entire
4646
crate, including inner modules. If imported with `extern crate orig_name as
47-
new_name`, then the symbol `new_name` is added to the prelude.
47+
new_name`, then the symbol `new_name` is instead added to the prelude.
4848

4949
The `core` crate is always added to the extern prelude. The `std` crate
50-
is added as long as the [`no_std`] attribute is not specified.
50+
is added as long as the [`no_std`] attribute is not specified in the crate root.
5151

5252
The [`no_implicit_prelude`] attribute can be used on a module to disable
5353
prelude lookups within that module.
@@ -60,7 +60,7 @@ prelude lookups within that module.
6060
> the extern prelude, so it is considered unidiomatic to use `extern crate`.
6161
6262
> **Note**: Crates not explicitly named with the `--extern` flag with `rustc`
63-
> are not included in the extern prelude. This means that additional crates
63+
> are not included in the extern prelude. As a result, additional crates
6464
> that ship with `rustc`, such as [`proc_macro`], [`alloc`], and [`test`],
6565
> currently aren't available in the extern prelude and must be brought into
6666
> scope with an `extern crate` declaration, even in the 2018 edition. `use`

0 commit comments

Comments
 (0)