Преглед изворни кода

Improved SafeMath inline comments.

Nicolás Venturo пре 7 година
родитељ
комит
a2e7103869
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      contracts/math/SafeMath.sol

+ 1 - 1
contracts/math/SafeMath.sol

@@ -25,7 +25,7 @@ library SafeMath {
   }
 
   /**
-  * @dev Integer division of two numbers, truncating the quotient.
+  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
   */
   function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
     require(_b > 0); // Solidity only automatically asserts when dividing by 0