mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
NFC: fix typos
This commit is contained in:
parent
17e04ac751
commit
920e47ceb5
4 changed files with 4 additions and 4 deletions
|
@ -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`.
|
||||
|
|
|
@ -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! {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 | | }
|
||||
| |_^
|
||||
|
||||
|
|
Loading…
Reference in a new issue