Skip to content

NFC: fix typos #3918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-toml/functions_maxlines/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-toml/functions_maxlines/test.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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 | | }
| |_^

Expand Down