Skip to content

Commit

Permalink
Auto merge of #5964 - matsujika:matsujika-patch-1, r=ebroto
Browse files Browse the repository at this point in the history
Fix typo

changelog: none
  • Loading branch information
bors committed Aug 26, 2020
2 parents ad7a03c + 9d18c24 commit 23db542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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! {
Expand Down

0 comments on commit 23db542

Please sign in to comment.