aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorChris Ward <chris.ward@ethereum.org>2019-01-03 00:25:16 +0800
committerChris Ward <chris.ward@ethereum.org>2019-01-07 21:20:10 +0800
commitcefc6c433e1722364a1461a144b077e57e2ecafe (patch)
treeccb81630ace0da0ba436d6084d259f188ad90bf3 /docs/control-structures.rst
parentaca9e581454585fab494a87febb7da3278e3aa7b (diff)
downloaddexon-solidity-cefc6c433e1722364a1461a144b077e57e2ecafe.tar.gz
dexon-solidity-cefc6c433e1722364a1461a144b077e57e2ecafe.tar.zst
dexon-solidity-cefc6c433e1722364a1461a144b077e57e2ecafe.zip
Update non-existant pragma 0.4.99 to 0.5.0
Use correct syntax for pragma Change pragma syntax One more change to pragma syntax
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 {