Add mutability declaration to example, for #3379

This commit is contained in:
William Entriken 2018-01-23 21:52:58 -05:00 committed by GitHub
parent 31aaf4336a
commit 053e634276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;}
}