Skip to content

Commit 69707f4

Browse files
committed
Wrap and reword no_implicit_prelude code comments
One of the comments in the example stretched out a bit far; let's wrap that and reword the comments in the example for clarity and flow.
1 parent 9ca5c57 commit 69707f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/names/preludes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ The *`no_implicit_prelude` [attribute]* is used to prevent implicit preludes fro
160160
161161
> [!EXAMPLE]
162162
> ```rust
163-
> // It can be applied to the crate root to apply to all modules.
163+
> // The attribute can be applied to the crate root to affect
164+
> // all modules.
164165
> #![no_implicit_prelude]
165166
>
166-
> // Or it can be applied to a module to only affect that module or any of its descendants.
167+
> // Or it can be applied to a module to only affect that module
168+
> // and its descendants.
167169
> #[no_implicit_prelude]
168170
> mod example {
169171
> // ...

0 commit comments

Comments
 (0)