Skip to content

Commit 7e0ddef

Browse files
bors[bot]ama0
andcommitted
3428: Typo "too" -> "foo" in format.rs r=matthiaskrgr a=ama0 Co-authored-by: Anton <[email protected]>
2 parents 973e70c + 93324f1 commit 7e0ddef

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)