aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-24 19:22:57 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-11-25 17:43:05 +0800
commit0599a14954aa0c22c992ae4585010a97cce63ca1 (patch)
tree1c9312e33fbdc42856bd919fd290d44f9e5d9600 /docs
parent936bade46f3f6f44c3d0c0cc079a7de77104e2b9 (diff)
downloaddexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar.gz
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar.bz2
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar.lz
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar.xz
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.tar.zst
dexon-solidity-0599a14954aa0c22c992ae4585010a97cce63ca1.zip
docs: cross-reference returning multiple values
Diffstat (limited to 'docs')
-rw-r--r--docs/control-structures.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 015e5526..4879a10e 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -42,6 +42,9 @@ write::
}
The names of output parameters can be omitted.
+The output values can also be specified using ``return`` statements.
+The ``return`` statements are also capable of returning multiple
+values, see :ref:`multi-return`.
Return parameters are initialized to zero; if they are not explicitly
set, they stay to be zero.
@@ -66,6 +69,8 @@ Note that there is no type conversion from non-boolean to boolean types as
there is in C and JavaScript, so ``if (1) { ... }`` is *not* valid
Solidity.
+.. _multi-return:
+
Returning Multiple Values
-------------------------