Auto merge of #5964 - matsujika:matsujika-patch-1, r=ebroto

Fix typo

changelog: none
This commit is contained in:
bors 2020-08-26 07:53:07 +00:00
commit 23db5426e6

View File

@ -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! {