Skip to content

Commit a36e5fb

Browse files
committed
typos
1 parent 42a5592 commit a36e5fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/mod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const CX_FIELD_VISITOR_CALLBACK = new Deno.UnsafeCallback(
205205
* handler (if any).
206206
*
207207
* When called with `false`, removes the currently installed error handler (if any).
208-
* If no error handler is intalled, the default strategy is to print error
208+
* If no error handler is installed, the default strategy is to print error
209209
* message to stderr and call exit(1).
210210
*
211211
* **WARNING**: This API is not supported on Windows and will throw an error
@@ -817,7 +817,7 @@ export class CXTranslationUnit {
817817
{ cause: result },
818818
);
819819
} else if (result !== 0) {
820-
throw new Error("Saving CXTranslationUnit failed: Unkown error code", {
820+
throw new Error("Saving CXTranslationUnit failed: Unknown error code", {
821821
cause: result,
822822
});
823823
}
@@ -7446,7 +7446,7 @@ export class CXDiagnosticSet {
74467446
);
74477447
} else if (errorNumber === CXLoadDiag_Error.CXLoadDiag_Unknown) {
74487448
throw new Error(
7449-
"Loading diagnostics failed: Unkown error",
7449+
"Loading diagnostics failed: Unknown error",
74507450
errorString ? { cause: errorString } : undefined,
74517451
);
74527452
} else {
@@ -7530,7 +7530,7 @@ export class CXDiagnostic {
75307530
*/
75317531
getChildDiagnostics(): null | CXDiagnosticSet {
75327532
if (this.#disposed) {
7533-
throw new Error("Cannot get children of diposed CXDiagnostic");
7533+
throw new Error("Cannot get children of disposed CXDiagnostic");
75347534
}
75357535
const pointer = libclang.symbols.clang_getChildDiagnostics(this.#pointer);
75367536
if (pointer === null) {

lib/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const throwIfError = (
118118
let err: Error;
119119
if (errorCode === CXErrorCode.CXError_Failure) {
120120
err = new Error(
121-
`${baseMessage}: Unkown error occurred`,
121+
`${baseMessage}: Unknown error occurred`,
122122
{ cause: errorCode },
123123
);
124124
} else if (errorCode === CXErrorCode.CXError_Crashed) {
@@ -135,7 +135,7 @@ export const throwIfError = (
135135
{ cause: errorCode },
136136
);
137137
} else {
138-
err = new Error(`${baseMessage}: Unkown error code`, {
138+
err = new Error(`${baseMessage}: Unknown error code`, {
139139
cause: errorCode,
140140
});
141141
}

0 commit comments

Comments
 (0)