Skip to content

Commit b0e524d

Browse files
poliorceticslcnr
andauthored
Apply suggestions from code review
Fix suggestions from review. Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
1 parent d1e3898 commit b0e524d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/keyword_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ mod unsafe_keyword {}
12201220
/// though a number of convenient shortcuts are supported:
12211221
///
12221222
/// * Simultaneously binding a list of paths with a common prefix,
1223-
/// using the glob-like brace syntax use `a::b::{c, d, e::f, g::h::i};`
1223+
/// using the glob-like brace syntax `use a::b::{c, d, e::f, g::h::i};`
12241224
/// * Simultaneously binding a list of paths with a common prefix and their common parent module,
12251225
/// using the [`self`] keyword, such as `use a::b::{self, c, d::e};`
12261226
/// * 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 {}
12301230
/// * Nesting groups of the previous features multiple times,
12311231
/// such as `use a::b::{self as ab, c, d::{*, e::f}};`
12321232
/// * Reexporting with visibility modifiers such as `pub use a::b;`
1233-
/// * Importing with `_` to only import the methods of the item without binding it to a name
1233+
/// * Importing with `_` to only import the methods of a trait without binding it to a name
12341234
/// (to avoid conflict for example): `use ::std::io::Read as _;`.
12351235
///
12361236
/// Using path qualifiers like [`crate`], [`super`] or [`self`] is supported: `use crate::a::b;`.

0 commit comments

Comments
 (0)