From 35a7fdd2c1bdaeec73f349cb92efeb2a28d46f10 Mon Sep 17 00:00:00 2001 From: Frank Steffahn Date: Sun, 22 Aug 2021 17:23:45 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20two=20more=20=E2=80=9Ca=E2=80=9D/?= =?UTF-8?q?=E2=80=9Can=E2=80=9D=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/hir_ty/src/diagnostics/decl_check/case_conv.rs | 2 +- crates/hir_ty/src/diagnostics/match_check/usefulness.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/hir_ty/src/diagnostics/decl_check/case_conv.rs b/crates/hir_ty/src/diagnostics/decl_check/case_conv.rs index 3ab36caf2bbf..7c477d4945cd 100644 --- a/crates/hir_ty/src/diagnostics/decl_check/case_conv.rs +++ b/crates/hir_ty/src/diagnostics/decl_check/case_conv.rs @@ -43,7 +43,7 @@ pub(crate) fn to_camel_case(ident: &str) -> Option { }) .fold((String::new(), None), |(acc, prev): (_, Option), next| { // separate two components with an underscore if their boundary cannot - // be distinguished using a uppercase/lowercase case distinction + // be distinguished using an uppercase/lowercase case distinction let join = prev .and_then(|prev| { let f = next.chars().next()?; diff --git a/crates/hir_ty/src/diagnostics/match_check/usefulness.rs b/crates/hir_ty/src/diagnostics/match_check/usefulness.rs index 8451f9df5aad..088c0b0586be 100644 --- a/crates/hir_ty/src/diagnostics/match_check/usefulness.rs +++ b/crates/hir_ty/src/diagnostics/match_check/usefulness.rs @@ -695,7 +695,7 @@ impl SubPatSet { for i in 0..*alt_count { let sub_set = subpats.get(&i).unwrap_or(&SubPatSet::Empty); if sub_set.is_empty() { - // Found a unreachable subpattern. + // Found an unreachable subpattern. unreachable_pats.push(expanded[i]); } else { fill_subpats(sub_set, unreachable_pats, cx);