File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ pub(super) struct PatCtxt<'a, 'p> {
326
326
/// Whether the current pattern is the whole pattern as found in a match arm, or if it's a
327
327
/// subpattern.
328
328
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.
330
330
pub ( super ) is_non_exhaustive : bool ,
331
331
}
332
332
Original file line number Diff line number Diff line change @@ -868,7 +868,7 @@ impl<'a> InferenceContext<'a> {
868
868
match rhs_ty. kind ( Interner ) {
869
869
TyKind :: Array ( _, _) => rhs_ty. clone ( ) ,
870
870
// 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
872
872
// type and length). This should not be just an error type,
873
873
// because we are to compute the unifiability of this type and
874
874
// `rhs_ty` in the end of this function to issue type mismatches.
You can’t perform that action at this time.
0 commit comments