Skip to content

Commit ba6555f

Browse files
committed
preludes: paths -> names
1 parent 880347e commit ba6555f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/crates-and-source-files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn main() {
8585

8686
## Preludes and `no_std`
8787

88-
All crates have a *prelude* that automatically inserts paths of a specific
88+
All crates have a *prelude* that automatically inserts names from a specific
8989
module, the *prelude module*, into scope of each [module] and an [`extern
9090
crate]` into the crate root module. By default, the *standard prelude* is used.
9191
The linked crate is [`std`] and the prelude module is [`std::prelude::v1`].

src/items/modules.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ mod thread {
6868
}
6969
```
7070

71-
Modules implicitly have some paths in scope. These paths are to built-in types,
71+
Modules implicitly have some names in scope. These name are to built-in types,
7272
macros imported with `#[macro_use]` on an extern crate, and by the crate's
73-
[prelude]. These paths are all made of a single identifier. These paths are not
74-
paths of the module, so for example, any path `path`, `self::path` is not also
75-
a valid path. The paths added by the [prelude] can be removed by placing the
73+
[prelude]. These names are all made of a single identifier. These names are not
74+
part of the module, so for example, any name `name`, `self::name` is not a
75+
valid path. The names added by the [prelude] can be removed by placing the
7676
`no_implicit_prelude` [attribute] onto the module.
7777

7878
## Attributes on Modules

0 commit comments

Comments
 (0)