]> git.lizzy.rs Git - rust.git/commitdiff
NFC: fix typos
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 4 Apr 2019 09:15:30 +0000 (11:15 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Thu, 4 Apr 2019 09:15:30 +0000 (11:15 +0200)
clippy_lints/src/lib.rs
clippy_lints/src/methods/mod.rs
tests/ui-toml/functions_maxlines/test.rs
tests/ui-toml/functions_maxlines/test.stderr

index bf98aa7e2b580b1e1fdb6ac1b8d13744600ac8b2..01d5f81dfbcd0cc640656646f67595bbc738d39b 100644 (file)
@@ -279,7 +279,7 @@ mod reexport {
 ///
 /// Pre-expansion lints run before any macro expansion has happened.
 ///
-/// Note that due to the architechture of the compiler, currently `cfg_attr` attributes on crate
+/// Note that due to the architecture of the compiler, currently `cfg_attr` attributes on crate
 /// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
 ///
 /// Used in `./src/driver.rs`.
index 858184d7ea16c673bcb5382b841f969b6ccd4c1b..7316a0a74f0c04c2b3cb00189b9449d8b2334f4e 100644 (file)
@@ -1635,7 +1635,7 @@ fn lint_get_unwrap<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &hir::Expr, get_a
 
     let mut span = expr.span;
 
-    // Handle the case where the result is immedately dereferenced
+    // Handle the case where the result is immediately dereferenced
     // by not requiring ref and pulling the dereference into the
     // suggestion.
     if_chain! {
index cd0e00825861b68bc095df388dce5a8aa5041196..a47677a1f3a2e02c8bb6a5b3bdf3f742c6954e6c 100644 (file)
@@ -38,7 +38,7 @@ fn comment_after_code() {
 fn comment_before_code() {
     let _ = "test";
     /* This comment extends to the front of
-    teh code but this line should still count. */ let _ = 5;
+    the code but this line should still count. */ let _ = 5;
 }
 
 // This should be considered one line.
index 0669e99370b2852e55a47b157f6f143ed6cf1d28..4b77ac551e770f174b59e666841fbb2267cc2b76 100644 (file)
@@ -15,7 +15,7 @@ error: This function has a large number of lines.
 LL | / fn comment_before_code() {
 LL | |     let _ = "test";
 LL | |     /* This comment extends to the front of
-LL | |     teh code but this line should still count. */ let _ = 5;
+LL | |     the code but this line should still count. */ let _ = 5;
 LL | | }
    | |_^