diff options
author | chriseth <chris@ethereum.org> | 2018-04-30 19:30:09 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-16 09:52:24 +0800 |
commit | 6c8f78fb8ff99c5d28669fa7383a25b8c8523915 (patch) | |
tree | 77c6fa1dfe65d50a55e487ed0e3732d93a7bf00b /docs/frequently-asked-questions.rst | |
parent | c781baf7336af55abc33e1b63e6fc99a7e555d78 (diff) | |
download | dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.gz dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.bz2 dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.lz dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.xz dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.zst dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.zip |
Update documentation for multi variable declaration statement.
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r-- | docs/frequently-asked-questions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 6a2fe685..ca5a1aee 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -203,7 +203,7 @@ situation. If you do not want to throw, you can return a pair:: - pragma solidity ^0.4.16; + pragma solidity >0.4.23 <0.5.0; contract C { uint[] counters; @@ -219,7 +219,7 @@ If you do not want to throw, you can return a pair:: } function checkCounter(uint index) public view { - var (counter, error) = getCounter(index); + (uint counter, bool error) = getCounter(index); if (error) { // ... } else { |