Skip to content

Commit a0b7f9b

Browse files
committed
useless_format: fix examples in the description
"Good" example was something not acceptable by the useless_format lint.
1 parent 54def1e commit a0b7f9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ declare_clippy_lint! {
2828
/// ```rust
2929
///
3030
/// // Bad
31-
/// # let foo = "foo";
31+
/// let foo = "foo";
3232
/// format!("{}", foo);
3333
///
3434
/// // Good
35-
/// format!("foo");
35+
/// foo.to_owned();
3636
/// ```
3737
pub USELESS_FORMAT,
3838
complexity,

0 commit comments

Comments
 (0)