Improved SafeMath inline comments.

This commit is contained in:
Nicolás Venturo
2018-08-10 17:34:34 -03:00
parent c9e91586e7
commit a2e7103869

View File

@ -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) { function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
require(_b > 0); // Solidity only automatically asserts when dividing by 0 require(_b > 0); // Solidity only automatically asserts when dividing by 0