We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 973e70c + 93324f1 commit 7e0ddefCopy full SHA for 7e0ddef
clippy_lints/src/format.rs
@@ -21,7 +21,7 @@ use crate::rustc_errors::Applicability;
21
/// **What it does:** Checks for the use of `format!("string literal with no
22
/// argument")` and `format!("{}", foo)` where `foo` is a string.
23
///
24
-/// **Why is this bad?** There is no point of doing that. `format!("too")` can
+/// **Why is this bad?** There is no point of doing that. `format!("foo")` can
25
/// be replaced by `"foo".to_owned()` if you really need a `String`. The even
26
/// worse `&format!("foo")` is often encountered in the wild. `format!("{}",
27
/// foo)` can be replaced by `foo.clone()` if `foo: String` or `foo.to_owned()`
0 commit comments