aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMircea Moca <mocamircea@gmail.com>2016-08-16 21:30:44 +0800
committerGitHub <noreply@github.com>2016-08-16 21:30:44 +0800
commitb2d6097653477056687eb7bcc2d1d5fa4c270f3b (patch)
treeba889e93cf27102876e94a8ca4011d66b87356f9
parent1c81d2a481f5a4744fcbd041cdf72b206cb783e6 (diff)
downloaddexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar.gz
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar.bz2
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar.lz
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar.xz
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.tar.zst
dexon-solidity-b2d6097653477056687eb7bcc2d1d5fa4c270f3b.zip
Update control-structures.rst
Splitted example.
-rw-r--r--docs/control-structures.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 260d6eee..220cbb42 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -87,8 +87,7 @@ parentheses at the end perform the actual call.
Named Calls and Anonymous Function Parameters
---------------------------------------------
-Function call arguments can also be given by name, in any order, and the names
-of unused parameters (especially return parameters) can be omitted.
+Function call arguments can also be given by name, in any order.
::
@@ -99,14 +98,20 @@ of unused parameters (especially return parameters) can be omitted.
// named arguments
f({value: 2, key: 3});
}
+ }
+Note that when calling the function, the argument list must match by name every parameter from the function declaration - though in an arbitrary order.
+Also, the names of unused parameters (especially return parameters) can be omitted.
+
+::
+
+ contract C {
// omitted name for parameter
function func(uint k, uint) returns(uint) {
return k;
}
}
-Note that when calling the function, the argument list must match by name every parameter from the function declaration - though in an arbitrary order.
Order of Evaluation of Expressions
==================================