Skip to content

Commit 60b7586

Browse files
committed
Revise no_implicit_prelude.allowed-positions text
It's more clear to say either that something can be applied "at the crate level" or "to the crate" than "to the crate level". Let's pick the latter and adjust for better grammatical parallelism.
1 parent 69707f4 commit 60b7586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/names/preludes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ r[names.preludes.no_implicit_prelude.syntax]
176176
The `no_implicit_prelude` attribute uses the [MetaWord] syntax.
177177
178178
r[names.preludes.no_implicit_prelude.allowed-positions]
179-
The `no_implicit_prelude` attribute may only be applied to the crate level or a module.
179+
The `no_implicit_prelude` attribute may only be applied to the crate or to a module.
180180
181181
> [!NOTE]
182182
> `rustc` ignores use in other positions but lints against it. This may become an error in the future.

0 commit comments

Comments
 (0)