diff options
author | William Entriken <github.com@phor.net> | 2018-01-24 10:52:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 10:52:58 +0800 |
commit | 053e6342767096be1db720484ec464151316b3e7 (patch) | |
tree | 4239485240e330643000644a44549783a49650ce | |
parent | 31aaf4336a5856e98475e2f66beb37eae271de90 (diff) | |
download | dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.gz dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.zst dexon-solidity-053e6342767096be1db720484ec464151316b3e7.zip |
Add mutability declaration to example, for #3379
-rw-r--r-- | docs/abi-spec.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index 0c0d4556..069abbfa 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -187,12 +187,12 @@ Given the contract: :: - pragma solidity ^0.4.0; + pragma solidity ^0.4.16; contract Foo { - function bar(bytes3[2] xy) public {} - function baz(uint32 x, bool y) public returns (bool r) { r = x > 32 || y; } - function sam(bytes name, bool z, uint[] data) public {} + function bar(bytes3[2]) public pure {} + function baz(uint32 x, bool y) public pure returns (bool r) { r = x > 32 || y; } + function sam(bytes name, bool z, uint[] data) public pure {name=name; z=z; data=data;} } |