]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos in README, documentation
authorzmt00 <zmt00@protonmail.com>
Mon, 1 Jan 2018 21:55:40 +0000 (13:55 -0800)
committerzmt00 <zmt00@protonmail.com>
Mon, 1 Jan 2018 21:55:40 +0000 (13:55 -0800)
README.md
clippy_lints/src/needless_borrowed_ref.rs

index 4be313c392ea938704769782cd5f6c2e9f15e9a8..4b2af3f782a9a10d04cfdbfcc67198945d022a1b 100644 (file)
--- 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 = "*" }
 ```
 
index c9a2e6b0935eac17b9e18964f228a6d24e1a41b9..f0e5db6d4046a7ca09b9710a262195897bd4a54e 100644 (file)
@@ -38,7 +38,7 @@
 ///     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()