docs: cross-reference returning multiple values

This commit is contained in:
Yoichi Hirai 2016-11-24 12:22:57 +01:00
parent 936bade46f
commit 0599a14954
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -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
-------------------------