about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirochika Matsumoto <matsujika@gmail.com>2020-08-26 16:03:35 +0900
committerHirochika Matsumoto <matsujika@gmail.com>2020-08-26 16:03:35 +0900
commit9d18c24b56b6079fc0b66d93b8679c760cd364fb (patch)
treee7407eaba8bf389ccb54710bcbd0da9d70271a4c
parentad7a03cbaa01103fbc26ba19a7f505ddccf5316f (diff)
downloadrust-9d18c24b56b6079fc0b66d93b8679c760cd364fb.tar.gz
rust-9d18c24b56b6079fc0b66d93b8679c760cd364fb.zip
Fix typo
-rw-r--r--clippy_lints/src/utils/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs
index 25301d6dede..e6be5c4588f 100644
--- a/clippy_lints/src/utils/mod.rs
+++ b/clippy_lints/src/utils/mod.rs
@@ -574,7 +574,7 @@ pub fn snippet_block<'a, T: LintContext>(
 }
 
 /// Same as `snippet_block`, but adapts the applicability level by the rules of
-/// `snippet_with_applicabiliy`.
+/// `snippet_with_applicability`.
 pub fn snippet_block_with_applicability<'a, T: LintContext>(
     cx: &T,
     span: Span,
@@ -1304,7 +1304,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
     }
 }
 
-// check if expr is calling method or function with #[must_use] attribyte
+// check if expr is calling method or function with #[must_use] attribute
 pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
     let did = match expr.kind {
         ExprKind::Call(ref path, _) => if_chain! {