aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index f8016806..f32e7879 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -168,7 +168,7 @@ is compiled so recursive creation-dependencies are not possible.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract D {
uint public x;
@@ -291,7 +291,7 @@ the two variables have the same name but disjoint scopes.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract C {
function minimalScoping() pure public {
{
@@ -312,7 +312,7 @@ In any case, you will get a warning about the outer variable being shadowed.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
// This will report a warning
contract C {
function f() pure public returns (uint) {
@@ -332,7 +332,7 @@ In any case, you will get a warning about the outer variable being shadowed.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
// This will not compile
contract C {
function f() pure public returns (uint) {
@@ -379,7 +379,7 @@ a message string for ``require``, but not for ``assert``.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract Sharer {
function sendHalf(address payable addr) public payable returns (uint balance) {
@@ -425,7 +425,7 @@ The following example shows how an error string can be used together with revert
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract VendingMachine {
function buy(uint amount) public payable {