From a2e710386933d3002062888b35aae8ac0401a7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 10 Aug 2018 17:34:34 -0300 Subject: [PATCH] Improved SafeMath inline comments. --- contracts/math/SafeMath.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/math/SafeMath.sol b/contracts/math/SafeMath.sol index 42b7e8148..e978fc428 100644 --- a/contracts/math/SafeMath.sol +++ b/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