mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Fix typos in README, documentation
This commit is contained in:
parent
1ecce2d803
commit
a7f423b114
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ typechecking (and lints) have completed, which can significantly reduce the runt
|
|||
Alternatively, to only run clippy when testing:
|
||||
|
||||
```toml
|
||||
[dev-dependencies]`
|
||||
[dev-dependencies]
|
||||
clippy = { version = "*" }
|
||||
```
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ use utils::{in_macro, snippet, span_lint_and_then};
|
|||
/// let mut v = Vec::<String>::new();
|
||||
/// let _ = v.iter_mut().filter(|&ref a| a.is_empty());
|
||||
/// ```
|
||||
/// This clojure takes a reference on something that has been matched as a
|
||||
/// This closure takes a reference on something that has been matched as a
|
||||
/// reference and
|
||||
/// de-referenced.
|
||||
/// As such, it could just be |a| a.is_empty()
|
||||
|
|
Loading…
Reference in a new issue