aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-16 20:04:18 +0800
committerGitHub <noreply@github.com>2018-07-16 20:04:18 +0800
commitc5ff173431741a4b12cac73c10e2132e3e4bb9d5 (patch)
treef200bf5d35d5ec3467817dcea2d91918e991fe55 /docs/solidity-by-example.rst
parent1a1cff189bcc9dc9dbd38ab40d6ee445b6128fd3 (diff)
parent3267adcd14ba10e27a4b177e771fca9c9ab39646 (diff)
downloaddexon-solidity-c5ff173431741a4b12cac73c10e2132e3e4bb9d5.tar.gz
dexon-solidity-c5ff173431741a4b12cac73c10e2132e3e4bb9d5.tar.zst
dexon-solidity-c5ff173431741a4b12cac73c10e2132e3e4bb9d5.zip
Merge pull request #4512 from chase1745/use-explicit-data-locations-external-tests
Added default data locations to docs and other external tests.
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index cd281aad..3934d29d 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -66,7 +66,7 @@ of votes.
Proposal[] public proposals;
/// Create a new ballot to choose one of `proposalNames`.
- constructor(bytes32[] proposalNames) public {
+ constructor(bytes32[] memory proposalNames) public {
chairperson = msg.sender;
voters[chairperson].weight = 1;
@@ -452,9 +452,9 @@ high or low invalid bids.
/// correctly blinded invalid bids and for all bids except for
/// the totally highest.
function reveal(
- uint[] _values,
- bool[] _fake,
- bytes32[] _secret
+ uint[] memory _values,
+ bool[] memory _fake,
+ bytes32[] memory _secret
)
public
onlyAfter(biddingEnd)