From 918b66bc2e176fc3c6f3088cc10b9d03e2df1f6e Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 12 Dec 2018 16:31:23 -0500 Subject: [PATCH] Fixed typo in error strings (#376). --- src.ts/errors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src.ts/errors.ts b/src.ts/errors.ts index d64ce470a..91765230b 100644 --- a/src.ts/errors.ts +++ b/src.ts/errors.ts @@ -23,7 +23,7 @@ export const MISSING_NEW = 'MISSING_NEW'; export const CALL_EXCEPTION = 'CALL_EXCEPTION'; // Invalid argument (e.g. value is incompatible with type) to a function: -// - arg: The argument name that was invalid +// - argument: The argument name that was invalid // - value: The value of the argument export const INVALID_ARGUMENT = 'INVALID_ARGUMENT'; @@ -116,7 +116,7 @@ export function checkArgumentCount(count: number, expectedCount: number, suffix? export function setCensorship(censorship: boolean, permanent?: boolean): void { if (_permanentCensorErrors) { - throwError('error censorship permanent', UNSUPPORTED_OPERATION, { operation: 'setCersorship' }); + throwError('error censorship permanent', UNSUPPORTED_OPERATION, { operation: 'setCensorship' }); } _censorErrors = !!censorship;