diff options
author | chriseth <chris@ethereum.org> | 2019-01-07 22:12:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 22:12:22 +0800 |
commit | d9910f2a1258e8d16d7a57905dabcd09db4e6a8d (patch) | |
tree | 114180e83a9d4affd7266ce43ff631e43c36d1e0 /docs/contracts.rst | |
parent | ce0b7e98d155064fd7e8c5ce938992f8e8efab83 (diff) | |
parent | cefc6c433e1722364a1461a144b077e57e2ecafe (diff) | |
download | dexon-solidity-d9910f2a1258e8d16d7a57905dabcd09db4e6a8d.tar.gz dexon-solidity-d9910f2a1258e8d16d7a57905dabcd09db4e6a8d.tar.zst dexon-solidity-d9910f2a1258e8d16d7a57905dabcd09db4e6a8d.zip |
Merge pull request #5732 from ethereum/pragma-update
[DOCS] Update non-existent pragma 0.4.99 to 0.5.0
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index c9adb03b..6d31ad82 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; } @@ -585,7 +585,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) { @@ -630,7 +630,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) { @@ -724,7 +724,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 @@ -1029,7 +1029,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; } @@ -1194,7 +1194,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; @@ -1373,7 +1373,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 } |