Skip to content

Commit 0e455b0

Browse files
authored
Merge pull request #3918 from matthiaskrgr/typos
NFC: fix typos
2 parents b996fd5 + 920e47c commit 0e455b0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ mod reexport {
279279
///
280280
/// Pre-expansion lints run before any macro expansion has happened.
281281
///
282-
/// Note that due to the architechture of the compiler, currently `cfg_attr` attributes on crate
282+
/// Note that due to the architecture of the compiler, currently `cfg_attr` attributes on crate
283283
/// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
284284
///
285285
/// Used in `./src/driver.rs`.

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ fn lint_get_unwrap<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &hir::Expr, get_a
16351635

16361636
let mut span = expr.span;
16371637

1638-
// Handle the case where the result is immedately dereferenced
1638+
// Handle the case where the result is immediately dereferenced
16391639
// by not requiring ref and pulling the dereference into the
16401640
// suggestion.
16411641
if_chain! {

tests/ui-toml/functions_maxlines/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn comment_after_code() {
3838
fn comment_before_code() {
3939
let _ = "test";
4040
/* This comment extends to the front of
41-
teh code but this line should still count. */ let _ = 5;
41+
the code but this line should still count. */ let _ = 5;
4242
}
4343

4444
// This should be considered one line.

tests/ui-toml/functions_maxlines/test.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ error: This function has a large number of lines.
1515
LL | / fn comment_before_code() {
1616
LL | | let _ = "test";
1717
LL | | /* This comment extends to the front of
18-
LL | | teh code but this line should still count. */ let _ = 5;
18+
LL | | the code but this line should still count. */ let _ = 5;
1919
LL | | }
2020
| |_^
2121

0 commit comments

Comments
 (0)