Skip to content

Commit ee50d5d

Browse files
committed
correct wrong doc syntax
1 parent d84d9d3 commit ee50d5d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

clippy_lints/src/manual_is_ascii_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum CharRange {
7474
LowerChar,
7575
/// 'A'..='Z' | b'A'..=b'Z'
7676
UpperChar,
77-
/// AsciiLower | AsciiUpper
77+
/// `AsciiLower` | `AsciiUpper`
7878
FullChar,
7979
/// '0..=9'
8080
Digit,

clippy_lints/src/methods/filter_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ enum OffendingFilterExpr<'tcx> {
7575
},
7676
/// `.filter(|enum| matches!(enum, Enum::A(_)))`
7777
Matches {
78-
/// The DefId of the variant being matched
78+
/// The `DefId` of the variant being matched
7979
variant_def_id: hir::def_id::DefId,
8080
},
8181
}

clippy_lints/src/question_mark.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ impl QuestionMark {
7474
enum IfBlockType<'hir> {
7575
/// An `if x.is_xxx() { a } else { b } ` expression.
7676
///
77-
/// Contains: caller (x), caller_type, call_sym (is_xxx), if_then (a), if_else (b)
77+
/// Contains: `caller (x), caller_type, call_sym (is_xxx), if_then (a), if_else (b)`
7878
IfIs(&'hir Expr<'hir>, Ty<'hir>, Symbol, &'hir Expr<'hir>),
7979
/// An `if let Xxx(a) = b { c } else { d }` expression.
8080
///
81-
/// Contains: let_pat_qpath (Xxx), let_pat_type, let_pat_sym (a), let_expr (b), if_then (c),
82-
/// if_else (d)
81+
/// Contains: `let_pat_qpath (Xxx), let_pat_type, let_pat_sym (a), let_expr (b), if_then (c),
82+
/// if_else (d)`
8383
IfLet(
8484
Res,
8585
Ty<'hir>,

clippy_lints/src/slow_vector_initialization.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ declare_lint_pass!(SlowVectorInit => [SLOW_VECTOR_INITIALIZATION]);
6262
/// assigned to a variable. For example, `let mut vec = Vec::with_capacity(0)` or
6363
/// `vec = Vec::with_capacity(0)`
6464
struct VecAllocation<'tcx> {
65-
/// HirId of the variable
65+
/// `HirId` of the variable
6666
local_id: HirId,
6767

6868
/// Reference to the expression which allocates the vector

0 commit comments

Comments
 (0)