diff options
| author | Poliorcetics <poliorcetics@users.noreply.github.com> | 2020-05-30 18:58:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 18:58:54 +0200 |
| commit | b0e524d444ea1a060b248b7ffedd48693f14285b (patch) | |
| tree | 76ff62882b866ba281ab247e60653536bdad2efb /src/libstd | |
| parent | d1e3898bd5d830c29602067ffdb87639f99f0862 (diff) | |
| download | rust-b0e524d444ea1a060b248b7ffedd48693f14285b.tar.gz rust-b0e524d444ea1a060b248b7ffedd48693f14285b.zip | |
Apply suggestions from code review
Fix suggestions from review. Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/keyword_docs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs index f74ee6a3e9b..a957bcf215f 100644 --- a/src/libstd/keyword_docs.rs +++ b/src/libstd/keyword_docs.rs @@ -1220,7 +1220,7 @@ mod unsafe_keyword {} /// though a number of convenient shortcuts are supported: /// /// * Simultaneously binding a list of paths with a common prefix, -/// using the glob-like brace syntax use `a::b::{c, d, e::f, g::h::i};` +/// using the glob-like brace syntax `use a::b::{c, d, e::f, g::h::i};` /// * Simultaneously binding a list of paths with a common prefix and their common parent module, /// using the [`self`] keyword, such as `use a::b::{self, c, d::e};` /// * Rebinding the target name as a new local name, using the syntax `use p::q::r as x;`. @@ -1230,7 +1230,7 @@ mod unsafe_keyword {} /// * Nesting groups of the previous features multiple times, /// such as `use a::b::{self as ab, c, d::{*, e::f}};` /// * Reexporting with visibility modifiers such as `pub use a::b;` -/// * Importing with `_` to only import the methods of the item without binding it to a name +/// * Importing with `_` to only import the methods of a trait without binding it to a name /// (to avoid conflict for example): `use ::std::io::Read as _;`. /// /// Using path qualifiers like [`crate`], [`super`] or [`self`] is supported: `use crate::a::b;`. |
