mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Require 0.4.16 for view/pure in docs examples
This commit is contained in:
parent
38035f8e32
commit
bb493bf52d
@ -471,7 +471,7 @@ Functions can be declared ``view`` in which case they promise not to modify the
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pragma solidity ^0.4.0;
|
pragma solidity ^0.4.16;
|
||||||
|
|
||||||
contract C {
|
contract C {
|
||||||
function f(uint a, uint b) view returns (uint) {
|
function f(uint a, uint b) view returns (uint) {
|
||||||
@ -498,7 +498,7 @@ Functions can be declared ``pure`` in which case they promise not to read from o
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pragma solidity ^0.4.0;
|
pragma solidity ^0.4.16;
|
||||||
|
|
||||||
contract C {
|
contract C {
|
||||||
function f(uint a, uint b) pure returns (uint) {
|
function f(uint a, uint b) pure returns (uint) {
|
||||||
|
Loading…
Reference in New Issue
Block a user