aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-25 03:28:07 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-27 01:33:42 +0800
commit532266b89e07d37115d160d3d1148b50e4fb1dfc (patch)
tree1f0be9568ebd277e07275b4baf0b1c214cb644a9 /docs/frequently-asked-questions.rst
parentf1e6bc2eaa452412e8050f72ff14ad738dbe49bc (diff)
downloaddexon-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.rst9
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 {
...
}
}