diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2022-07-02 17:19:06 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2022-07-02 17:19:06 +0200 |
| commit | f2963cf8ff69a9bc2f076d01621e454823b63cea (patch) | |
| tree | 897efde23473dd0861e7dcedc58efbe2e3237692 | |
| parent | d4b79ad77b8d8f431b7d4eeead1cf880a18be82b (diff) | |
| download | rust-f2963cf8ff69a9bc2f076d01621e454823b63cea.tar.gz rust-f2963cf8ff69a9bc2f076d01621e454823b63cea.zip | |
fix: typos in hir-ty
| -rw-r--r-- | crates/hir-ty/src/diagnostics/match_check/usefulness.rs | 2 | ||||
| -rw-r--r-- | crates/hir-ty/src/infer/expr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/diagnostics/match_check/usefulness.rs b/crates/hir-ty/src/diagnostics/match_check/usefulness.rs index e8a13955d21..1221327b951 100644 --- a/crates/hir-ty/src/diagnostics/match_check/usefulness.rs +++ b/crates/hir-ty/src/diagnostics/match_check/usefulness.rs @@ -326,7 +326,7 @@ pub(super) struct PatCtxt<'a, 'p> { /// Whether the current pattern is the whole pattern as found in a match arm, or if it's a /// subpattern. pub(super) is_top_level: bool, - /// Wether the current pattern is from a `non_exhaustive` enum. + /// Whether the current pattern is from a `non_exhaustive` enum. pub(super) is_non_exhaustive: bool, } diff --git a/crates/hir-ty/src/infer/expr.rs b/crates/hir-ty/src/infer/expr.rs index defceefc79f..3cb7afef749 100644 --- a/crates/hir-ty/src/infer/expr.rs +++ b/crates/hir-ty/src/infer/expr.rs @@ -868,7 +868,7 @@ impl<'a> InferenceContext<'a> { match rhs_ty.kind(Interner) { TyKind::Array(_, _) => rhs_ty.clone(), // Even when `rhs_ty` is not an array type, this assignee - // expression is infered to be an array (of unknown element + // expression is inferred to be an array (of unknown element // type and length). This should not be just an error type, // because we are to compute the unifiability of this type and // `rhs_ty` in the end of this function to issue type mismatches. |
