Skip to content

Commit 30680df

Browse files
committed
Auto merge of rust-lang#12679 - a-kenji:fix-typos-hir, r=lnicola
fix: typos in hir-ty
2 parents d4b79ad + f2963cf commit 30680df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir-ty/src/diagnostics/match_check/usefulness.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ pub(super) struct PatCtxt<'a, 'p> {
326326
/// Whether the current pattern is the whole pattern as found in a match arm, or if it's a
327327
/// subpattern.
328328
pub(super) is_top_level: bool,
329-
/// Wether the current pattern is from a `non_exhaustive` enum.
329+
/// Whether the current pattern is from a `non_exhaustive` enum.
330330
pub(super) is_non_exhaustive: bool,
331331
}
332332

crates/hir-ty/src/infer/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ impl<'a> InferenceContext<'a> {
868868
match rhs_ty.kind(Interner) {
869869
TyKind::Array(_, _) => rhs_ty.clone(),
870870
// Even when `rhs_ty` is not an array type, this assignee
871-
// expression is infered to be an array (of unknown element
871+
// expression is inferred to be an array (of unknown element
872872
// type and length). This should not be just an error type,
873873
// because we are to compute the unifiability of this type and
874874
// `rhs_ty` in the end of this function to issue type mismatches.

0 commit comments

Comments
 (0)