aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.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/contracts.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/contracts.rst')
-rw-r--r--docs/contracts.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 746f6e00..24477a62 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -343,7 +343,7 @@ inheritable properties of contracts and may be overridden by derived contracts.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract owned {
constructor() public { owner = msg.sender; }
@@ -619,7 +619,7 @@ The following statements are considered modifying the state:
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract C {
function f(uint a, uint b) public view returns (uint) {
@@ -664,7 +664,7 @@ In addition to the list of state modifying statements explained above, the follo
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract C {
function f(uint a, uint b) public pure returns (uint) {
@@ -758,7 +758,7 @@ Like any function, the fallback function can execute complex operations as long
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract Test {
// This function is called for all messages sent to
@@ -1063,7 +1063,7 @@ Details are given in the following example.
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract owned {
constructor() public { owner = msg.sender; }
@@ -1228,7 +1228,7 @@ equivalent to ``constructor() public {}``. For example:
::
- pragma solidity >0.4.99 <0.6.0;
+ pragma solidity ^0.5.0;
contract A {
uint public a;
@@ -1407,7 +1407,7 @@ Interfaces are denoted by their own keyword:
::
- pragma solidity >=0.5.0 <0.6.0;
+ pragma solidity ^0.5.0;
interface Token {
enum TokenType { Fungible, NonFungible }