Skip to content

Commit f29fa19

Browse files
authored
Apply suggestions from code review
1 parent 7cdb068 commit f29fa19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StdMath.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ library stdMath {
3030

3131
function percentDelta(uint256 a, uint256 b) internal pure returns (uint256) {
3232
// Prevent division by zero
33-
require(b != 0, "stdMath: percentDelta divisor is zero");
33+
require(b != 0, "stdMath percentDelta(uint256,uint256): Divisor is zero");
3434
uint256 absDelta = delta(a, b);
3535

3636
return absDelta * 1e18 / b;
@@ -40,7 +40,7 @@ library stdMath {
4040
uint256 absDelta = delta(a, b);
4141
uint256 absB = abs(b);
4242
// Prevent division by zero
43-
require(absB != 0, "stdMath: percentDelta divisor is zero");
43+
require(absB != 0, "stdMath percentDelta(int256,int256): Divisor is zero");
4444

4545
return absDelta * 1e18 / absB;
4646
}

0 commit comments

Comments
 (0)