From 7bce43b66b1028ae1402e3f9bfd8225400912586 Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Tue, 31 Oct 2017 08:34:27 +0100 Subject: [PATCH] fix some typos --- CHANGELOG.md | 2 +- clippy_lints/src/const_static_lifetime.rs | 2 +- clippy_lints/src/doc.rs | 2 +- src/driver.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c7447966818..b6ce809f2de8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,7 +72,7 @@ All notable changes to this project will be documented in this file. ## 0.0.148 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)* -* New lints: [`unreadable_literal`], [`inconsisten_digit_grouping`], [`large_digit_groups`] +* New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`] ## 0.0.147 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)* diff --git a/clippy_lints/src/const_static_lifetime.rs b/clippy_lints/src/const_static_lifetime.rs index 4801f788856b..03771f0375b3 100644 --- a/clippy_lints/src/const_static_lifetime.rs +++ b/clippy_lints/src/const_static_lifetime.rs @@ -37,7 +37,7 @@ impl StaticConst { // Recursively visit types fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext) { match ty.node { - // Be carefull of nested structures (arrays and tuples) + // Be careful of nested structures (arrays and tuples) TyKind::Array(ref ty, _) => { self.visit_type(&*ty, cx); }, diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index abe9897ba4d4..9ed09d96e1b0 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -224,7 +224,7 @@ fn check_doc<'a, Events: Iterator)>>( let (begin, span) = spans[index]; - // Adjust for the begining of the current `Event` + // Adjust for the beginning of the current `Event` let span = span.with_lo(span.lo() + BytePos::from_usize(offset - begin)); check_text(cx, valid_idents, &text, span); diff --git a/src/driver.rs b/src/driver.rs index ab5e90141a9a..ec5c10d4c6d0 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -82,7 +82,7 @@ impl<'a> CompilerCalls<'a> for ClippyCompilerCalls { .as_ref() .expect( "at this compilation stage \ - the krate must be parsed", + the crate must be parsed", ) .span, );