From 053e6342767096be1db720484ec464151316b3e7 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Tue, 23 Jan 2018 21:52:58 -0500 Subject: Add mutability declaration to example, for #3379 --- docs/abi-spec.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/abi-spec.rst') 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;} } -- cgit