aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorWilliam Entriken <github.com@phor.net>2018-01-24 10:52:58 +0800
committerGitHub <noreply@github.com>2018-01-24 10:52:58 +0800
commit053e6342767096be1db720484ec464151316b3e7 (patch)
tree4239485240e330643000644a44549783a49650ce /docs/abi-spec.rst
parent31aaf4336a5856e98475e2f66beb37eae271de90 (diff)
downloaddexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.gz
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.bz2
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.lz
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.xz
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.tar.zst
dexon-solidity-053e6342767096be1db720484ec464151316b3e7.zip
Add mutability declaration to example, for #3379
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst8
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;}
}