Parcourir la source

Improved SafeMath inline comments.

Nicolás Venturo il y a 7 ans
Parent
commit
a2e7103869
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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