File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1324,20 +1324,20 @@ declare_clippy_lint! {
1324
1324
}
1325
1325
1326
1326
declare_clippy_lint ! {
1327
- /// **What it does:** Warns when using push_str with a single-character string literal,
1328
- /// and push with a char would work fine.
1327
+ /// **What it does:** Warns when using ` push_str` with a single-character string literal,
1328
+ /// and ` push` with a ` char` would work fine.
1329
1329
///
1330
- /// **Why is this bad?** It's less clear that we are pushing a single character
1330
+ /// **Why is this bad?** It's less clear that we are pushing a single character.
1331
1331
///
1332
1332
/// **Known problems:** None
1333
1333
///
1334
1334
/// **Example:**
1335
- /// ```
1335
+ /// ```rust
1336
1336
/// let mut string = String::new();
1337
1337
/// string.push_str("R");
1338
1338
/// ```
1339
1339
/// Could be written as
1340
- /// ```
1340
+ /// ```rust
1341
1341
/// let mut string = String::new();
1342
1342
/// string.push('R');
1343
1343
/// ```
You can’t perform that action at this time.
0 commit comments