aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-01-29 20:44:43 +0800
committerGitHub <noreply@github.com>2018-01-29 20:44:43 +0800
commitbd3692f1e69c3c1954c09bd7cb964b5e62450989 (patch)
tree235af8cd0e8486a47ddf8b2506bc47920820fa9c /docs
parenta668b9dee031de507199ecbae3125174a36fa442 (diff)
parent1cc31bacef4c7a679a160dc3582c47b8c9b216cf (diff)
downloaddexon-solidity-bd3692f1e69c3c1954c09bd7cb964b5e62450989.tar.gz
dexon-solidity-bd3692f1e69c3c1954c09bd7cb964b5e62450989.tar.zst
dexon-solidity-bd3692f1e69c3c1954c09bd7cb964b5e62450989.zip
Merge pull request #3431 from fulldecent/patch-7
Add mutability declaration to example, for #3379
Diffstat (limited to 'docs')
-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..8095a3b7 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, bool, uint[]) public pure {}
}