Skip to content

Commit 93324f1

Browse files
authored
Fix "too" -> "foo" typo in format.rs
1 parent 973e70c commit 93324f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::rustc_errors::Applicability;
2121
/// **What it does:** Checks for the use of `format!("string literal with no
2222
/// argument")` and `format!("{}", foo)` where `foo` is a string.
2323
///
24-
/// **Why is this bad?** There is no point of doing that. `format!("too")` can
24+
/// **Why is this bad?** There is no point of doing that. `format!("foo")` can
2525
/// be replaced by `"foo".to_owned()` if you really need a `String`. The even
2626
/// worse `&format!("foo")` is often encountered in the wild. `format!("{}",
2727
/// foo)` can be replaced by `foo.clone()` if `foo: String` or `foo.to_owned()`

0 commit comments

Comments
 (0)