Skip to content

Commit

Permalink
Merge #3428
Browse files Browse the repository at this point in the history
3428: Typo "too" -> "foo" in format.rs r=matthiaskrgr a=ama0



Co-authored-by: Anton <[email protected]>
  • Loading branch information
bors[bot] and ama0 committed Nov 14, 2018
2 parents 973e70c + 93324f1 commit 7e0ddef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::rustc_errors::Applicability;
/// **What it does:** Checks for the use of `format!("string literal with no
/// argument")` and `format!("{}", foo)` where `foo` is a string.
///
/// **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
/// be replaced by `"foo".to_owned()` if you really need a `String`. The even
/// worse `&format!("foo")` is often encountered in the wild. `format!("{}",
/// foo)` can be replaced by `foo.clone()` if `foo: String` or `foo.to_owned()`
Expand Down

0 comments on commit 7e0ddef

Please sign in to comment.