From 41d16d2f6818f16435d5e0077f8f428ada380fbc Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Tue, 4 Oct 2022 12:41:31 +0400 Subject: [PATCH] Fix typos --- lib/binary_parser.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/binary_parser.ts b/lib/binary_parser.ts index f8a9229f..d347ee8a 100644 --- a/lib/binary_parser.ts +++ b/lib/binary_parser.ts @@ -638,7 +638,7 @@ export class Parser { !aliasRegistry.has(options.type) && !(options.type in PRIMITIVE_SIZES) ) { - throw new Error(`Array element type "${options.type}" is unkown.`); + throw new Error(`Array element type "${options.type}" is unknown.`); } return this.setNextParser("array", varName, options); @@ -675,7 +675,7 @@ export class Parser { !aliasRegistry.has(value) && !((value as string) in PRIMITIVE_SIZES) ) { - throw new Error(`Choice type "${value}" is unkown.`); + throw new Error(`Choice type "${value}" is unknown.`); } } @@ -719,7 +719,7 @@ export class Parser { !(options.type in PRIMITIVE_SIZES) && !aliasRegistry.has(options.type) ) { - throw new Error(`Pointer type "${options.type}" is unkown.`); + throw new Error(`Pointer type "${options.type}" is unknown.`); } return this.setNextParser("pointer", varName, options);