Selaa lähdekoodia

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

Signed-off-by: snoppy <michaleli@foxmail.com>
Snoppy 1 vuosi sitten
vanhempi
sitoutus
60697cb09a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)));