Skip to content

Commit

Permalink
preludes: paths -> names
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Oct 8, 2018
1 parent 354dc3f commit cb53ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn main() {

## Preludes and `no_std`

All crates have a *prelude* that automatically inserts paths of a specific
All crates have a *prelude* that automatically inserts names from a specific
module, the *prelude module*, into scope of each [module] and an [`extern
crate]` into the crate root module. By default, the *standard prelude* is used.
The linked crate is [`std`] and the prelude module is [`std::prelude::v1`].
Expand Down
8 changes: 4 additions & 4 deletions src/items/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ mod thread {
}
```

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

## Attributes on Modules
Expand Down

0 comments on commit cb53ba3

Please sign in to comment.