From a7f423b114420b6ad7265faff2c90441f380de4f Mon Sep 17 00:00:00 2001 From: zmt00 Date: Mon, 1 Jan 2018 13:55:40 -0800 Subject: [PATCH] Fix typos in README, documentation --- README.md | 2 +- clippy_lints/src/needless_borrowed_ref.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4be313c392e..4b2af3f782a 100644 --- a/README.md +++ b/README.md @@ -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 = "*" } ``` diff --git a/clippy_lints/src/needless_borrowed_ref.rs b/clippy_lints/src/needless_borrowed_ref.rs index c9a2e6b0935..f0e5db6d404 100644 --- a/clippy_lints/src/needless_borrowed_ref.rs +++ b/clippy_lints/src/needless_borrowed_ref.rs @@ -38,7 +38,7 @@ use utils::{in_macro, snippet, span_lint_and_then}; /// let mut v = Vec::::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()