mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix a logical contradiction in new version of § Example
"if (x > 100) throw;" --> "require(x <= 100);"
This commit is contained in:
parent
dc29888601
commit
49514bc577
@ -455,7 +455,7 @@ New version:
|
||||
uint z = someInteger();
|
||||
x += z;
|
||||
// Throw is now disallowed.
|
||||
require(x > 100);
|
||||
require(x <= 100);
|
||||
int y = -3 >> 1;
|
||||
require(y == -2);
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user