Typographic error in Math.sol comment fix (#5115)

pull/5123/head
Marco @Paladin 7 months ago committed by GitHub
parent e30b390d84
commit 9e73c4b581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      contracts/utils/math/Math.sol

@ -144,7 +144,7 @@ library Math {
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2² and mod 2² - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2² + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product

Loading…
Cancel
Save