mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
docs: cross-reference returning multiple values
This commit is contained in:
parent
936bade46f
commit
0599a14954
@ -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
|
||||
-------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user