diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-25 03:28:07 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-27 01:33:42 +0800 |
commit | 532266b89e07d37115d160d3d1148b50e4fb1dfc (patch) | |
tree | 1f0be9568ebd277e07275b4baf0b1c214cb644a9 /docs/frequently-asked-questions.rst | |
parent | f1e6bc2eaa452412e8050f72ff14ad738dbe49bc (diff) | |
download | dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.gz dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.zst dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.zip |
Use new style for the docs
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r-- | docs/frequently-asked-questions.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index c28b4ab7..7e69093f 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -461,16 +461,17 @@ If you do not want to throw, you can return a pair:: function getCounter(uint index) returns (uint counter, bool error) { - if (index >= counters.length) return (0, true); - else return (counters[index], false); + if (index >= counters.length) + return (0, true); + else + return (counters[index], false); } function checkCounter(uint index) { var (counter, error) = getCounter(index); if (error) { ... - } - else { + } else { ... } } |