Skip to content

Commit 23db542

Browse files
committed
Auto merge of #5964 - matsujika:matsujika-patch-1, r=ebroto
Fix typo changelog: none
2 parents ad7a03c + 9d18c24 commit 23db542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ pub fn snippet_block<'a, T: LintContext>(
574574
}
575575

576576
/// Same as `snippet_block`, but adapts the applicability level by the rules of
577-
/// `snippet_with_applicabiliy`.
577+
/// `snippet_with_applicability`.
578578
pub fn snippet_block_with_applicability<'a, T: LintContext>(
579579
cx: &T,
580580
span: Span,
@@ -1304,7 +1304,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
13041304
}
13051305
}
13061306

1307-
// check if expr is calling method or function with #[must_use] attribyte
1307+
// check if expr is calling method or function with #[must_use] attribute
13081308
pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
13091309
let did = match expr.kind {
13101310
ExprKind::Call(ref path, _) => if_chain! {

0 commit comments

Comments
 (0)