Skip to content

Commit

Permalink
chore(nat): Fix typo in Nat error message (endojs#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 authored May 25, 2024
1 parent 0db5815 commit 8f14465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nat/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Nat(allegedNum) {

if (typeof allegedNum === 'number') {
if (!Number.isSafeInteger(allegedNum)) {
throw RangeError(`${allegedNum} not a safe integer`);
throw RangeError(`${allegedNum} is not a safe integer`);
}
if (allegedNum < 0) {
throw RangeError(`${allegedNum} is negative`);
Expand Down

0 comments on commit 8f14465

Please sign in to comment.