Skip to content

Commit ae893d6

Browse files
committed
Revise no_std text to increase parallelism
Some sentences here could be improved with more sentence parallelism and a bit of reordering, so let's do that.
1 parent 9d79e59 commit ae893d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/names/preludes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ The `no_std` attribute may be used any number of times on a form.
108108
> `rustc` lints against any use following the first.
109109
110110
r[names.preludes.extern.no_std.module]
111-
The `no_std` attribute changes the [standard library prelude] to use the `core` prelude instead of `std`.
111+
The `no_std` attribute changes the [standard library prelude] to use the `core` prelude instead of the `std` prelude.
112112
113113
r[names.preludes.extern.no_std.inject]
114114
By default, the [`std`] crate is injected into the [extern prelude], and all macros exported from `std` are added to the [`macro_use` prelude].
115115
116-
If the `no_std` attribute is specified, then the [`core`] crate is used instead of `std`, and similarly all macros exported from `core` are placed into the [`macro_use` prelude].
116+
If the `no_std` attribute is specified, then the [`core`] crate is used instead of the `std` crate, and similarly all macros exported from `core` are placed into the [`macro_use` prelude].
117117
118118
r[names.preludes.extern.no_std.edition2018]
119119
> [!EDITION-2018]
120-
> Before the 2018 edition, `std` is also injected into the crate root. `core` is injected instead of `std` if `no_std` is specified. Starting with the 2018 edition, these are not injected into the crate root.
120+
> Before the 2018 edition, `std` is injected into the crate root by default. If `no_std` is specified, `core` is injected instead. Starting with the 2018 edition, regardless of `no_std` being specified, neither is injected into the crate root.
121121
122122
r[names.preludes.lang]
123123
## Language prelude

0 commit comments

Comments
 (0)