diff --git a/src/semantics/resolution/resolve-match.ts b/src/semantics/resolution/resolve-match.ts index 21aa1af..b4ec9ac 100644 --- a/src/semantics/resolution/resolve-match.ts +++ b/src/semantics/resolution/resolve-match.ts @@ -43,7 +43,7 @@ const resolveCase = ( // NOTE: This binding is temporary and will be overwritten in the next case. // We may need to introduce an wrapping block and register it to the blocks scope - // to avoyd this. + // to avoid this. c.expr.registerEntity(localBinding); const expr = resolveTypes(c.expr) as Call | Block; diff --git a/src/semantics/resolution/resolve-object-type.ts b/src/semantics/resolution/resolve-object-type.ts index b35fbb5..83ef23c 100644 --- a/src/semantics/resolution/resolve-object-type.ts +++ b/src/semantics/resolution/resolve-object-type.ts @@ -81,7 +81,7 @@ const resolveGenericsWithTypeArgs = ( obj.registerGenericInstance(resolvedObj); const implementations = newObj.implementations; - newObj.implementations = []; // Clear implementations to avoyd duplicates, resolveImpl will re-add them + newObj.implementations = []; // Clear implementations to avoid duplicates, resolveImpl will re-add them implementations .filter((impl) => implIsCompatible(impl, resolvedObj))