File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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> {
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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments