Skip to content

Commit 60697cb

Browse files
authored
Fix typo in Math.ternary (#5026)
Signed-off-by: snoppy <michaleli@foxmail.com>
1 parent 4032b42 commit 60697cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/utils/math/SignedMath.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ library SignedMath {
1818
*/
1919
function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {
2020
unchecked {
21-
// branchless terinary works because:
21+
// branchless ternary works because:
2222
// b ^ (a ^ b) == a
2323
// b ^ 0 == b
2424
return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));

0 commit comments

Comments
 (0)