From 6571b4b8e0ecf2accaf80e041fea06aa551d2970 Mon Sep 17 00:00:00 2001
From: Johannes Meier <johannes.meier@typefox.io>
Date: Thu, 19 Dec 2024 11:50:50 +0100
Subject: [PATCH] Fix minor typos (thanks to #48)

---
 packages/typir-langium/src/features/langium-type-creator.ts | 2 +-
 packages/typir/src/kinds/bottom/bottom-kind.ts              | 2 +-
 packages/typir/src/kinds/primitive/primitive-kind.ts        | 2 +-
 packages/typir/src/kinds/top/top-kind.ts                    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/typir-langium/src/features/langium-type-creator.ts b/packages/typir-langium/src/features/langium-type-creator.ts
index dcf87ea..7c95b19 100644
--- a/packages/typir-langium/src/features/langium-type-creator.ts
+++ b/packages/typir-langium/src/features/langium-type-creator.ts
@@ -28,7 +28,7 @@ export interface LangiumTypeCreator {
 
     /**
      * React on updates of the AST in order to add/remove corresponding types from the type system,
-     * e.g. for user-definied functions to create corresponding function types in the type graph.
+     * e.g. for user-defined functions to create corresponding function types in the type graph.
      * @param domainElement an AstNode of the current AST
      */
     onNewAstNode(domainElement: AstNode): void;
diff --git a/packages/typir/src/kinds/bottom/bottom-kind.ts b/packages/typir/src/kinds/bottom/bottom-kind.ts
index a58835f..d97a103 100644
--- a/packages/typir/src/kinds/bottom/bottom-kind.ts
+++ b/packages/typir/src/kinds/bottom/bottom-kind.ts
@@ -12,7 +12,7 @@ import { isKind, Kind } from '../kind.js';
 import { TypeDetails } from '../../graph/type-node.js';
 
 export interface BottomTypeDetails extends TypeDetails {
-    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earler rule already matched. */
+    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earlier rule already matched. */
     inferenceRules?: InferBottomType | InferBottomType[]
 }
 
diff --git a/packages/typir/src/kinds/primitive/primitive-kind.ts b/packages/typir/src/kinds/primitive/primitive-kind.ts
index c821aef..339718a 100644
--- a/packages/typir/src/kinds/primitive/primitive-kind.ts
+++ b/packages/typir/src/kinds/primitive/primitive-kind.ts
@@ -17,7 +17,7 @@ export interface PrimitiveKindOptions {
 
 export interface PrimitiveTypeDetails extends TypeDetails {
     primitiveName: string;
-    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earler rule already matched. */
+    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earlier rule already matched. */
     inferenceRules?: InferPrimitiveType | InferPrimitiveType[];
 }
 
diff --git a/packages/typir/src/kinds/top/top-kind.ts b/packages/typir/src/kinds/top/top-kind.ts
index dee439b..3c4f71a 100644
--- a/packages/typir/src/kinds/top/top-kind.ts
+++ b/packages/typir/src/kinds/top/top-kind.ts
@@ -12,7 +12,7 @@ import { isKind, Kind } from '../kind.js';
 import { TopType } from './top-type.js';
 
 export interface TopTypeDetails extends TypeDetails {
-    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earler rule already matched. */
+    /** In case of multiple inference rules, later rules are not evaluated anymore, if an earlier rule already matched. */
     inferenceRules?: InferTopType | InferTopType[]
 }