Minor change in SafeMath sub documentation
This commit is contained in:
committed by
GitHub
parent
21297e2b2c
commit
49b42e8696
@ -30,7 +30,7 @@ library SafeMath {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Substracts two numbers, throws if subtrahend is greater than minuend.
|
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
|
||||||
*/
|
*/
|
||||||
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
|
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
|
||||||
assert(b <= a);
|
assert(b <= a);
|
||||||
|
|||||||
Reference in New Issue
Block a user