From cb53ba3f7b855d30e396bcbdfa6c902ed30383f3 Mon Sep 17 00:00:00 2001 From: "Havvy (Ryan Scheel)" Date: Tue, 2 Oct 2018 18:27:45 -0700 Subject: [PATCH] preludes: paths -> names --- src/crates-and-source-files.md | 2 +- src/items/modules.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crates-and-source-files.md b/src/crates-and-source-files.md index 7c3ad7d9d..b2dd4f03f 100644 --- a/src/crates-and-source-files.md +++ b/src/crates-and-source-files.md @@ -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`]. diff --git a/src/items/modules.md b/src/items/modules.md index 1be34834e..da06a6dd7 100644 --- a/src/items/modules.md +++ b/src/items/modules.md @@ -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