Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Commit 61edcbd

Browse files
committed
docs: move internal up
1 parent d189953 commit 61edcbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/math/Math.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ library Math {
1111

1212
int256 internal constant MIN_INT256 = -2 ** 255;
1313

14+
/* INTERNAL */
15+
1416
function abs(int256 x) internal pure returns (int256 y) {
1517
assembly {
1618
let mask := sar(255, x)
1719
y := xor(add(x, mask), mul(mask, iszero(eq(x, MIN_INT256))))
1820
}
1921
}
2022

21-
/* INTERNAL */
22-
2323
function safeAbs(int256 x) internal pure returns (int256 y) {
2424
require(x != type(int256).min);
2525

0 commit comments

Comments
 (0)