소스 검색

Fix typo in `Math.ternary` (#5026)

Signed-off-by: snoppy <michaleli@foxmail.com>
Snoppy 1 년 전
부모
커밋
60697cb09a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      contracts/utils/math/SignedMath.sol

+ 1 - 1
contracts/utils/math/SignedMath.sol

@@ -18,7 +18,7 @@ library SignedMath {
      */
     function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {
         unchecked {
-            // branchless terinary works because:
+            // branchless ternary works because:
             // b ^ (a ^ b) == a
             // b ^ 0 == b
             return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));