Improved SafeMath inline comments.
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user