Skip to content

Commit ad87b71

Browse files
committed
docs: fixed typos in comments (ethers-io#2087).
1 parent 48c9e0b commit ad87b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bignumber/src.ts/fixednumber.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ export function parseFixed(value: string, decimals?: BigNumberish): BigNumber {
9494
if (!whole) { whole = "0"; }
9595
if (!fraction) { fraction = "0"; }
9696

97-
// Trim trialing zeros
97+
// Trim trailing zeros
9898
while (fraction[fraction.length - 1] === "0") {
9999
fraction = fraction.substring(0, fraction.length - 1);
100100
}
101101

102-
// Check the fraction doesn't exceed our decimals
102+
// Check the fraction doesn't exceed our decimals size
103103
if (fraction.length > multiplier.length - 1) {
104104
throwFault("fractional component exceeds decimals", "underflow", "parseFixed");
105105
}

0 commit comments

Comments
 (0)