Fixed typo in error string.

This commit is contained in:
Richard Moore 2020-06-29 00:45:47 -04:00
parent 9e1434503e
commit 7fe702d59b
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export class FixedFormat {
constructor(constructorGuard: any, signed: boolean, width: number, decimals: number) { constructor(constructorGuard: any, signed: boolean, width: number, decimals: number) {
if (constructorGuard !== _constructorGuard) { if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedFormat construtor; use FixedFormat.from", Logger.errors.UNSUPPORTED_OPERATION, { logger.throwError("cannot use FixedFormat constructor; use FixedFormat.from", Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat" operation: "new FixedFormat"
}); });
} }
@ -192,7 +192,7 @@ export class FixedNumber {
logger.checkNew(new.target, FixedNumber); logger.checkNew(new.target, FixedNumber);
if (constructorGuard !== _constructorGuard) { if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedNumber construtor; use FixedNumber.from", Logger.errors.UNSUPPORTED_OPERATION, { logger.throwError("cannot use FixedNumber constructor; use FixedNumber.from", Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat" operation: "new FixedFormat"
}); });
} }