Update control-structures.rst

This commit is contained in:
Mircea Moca 2016-08-16 10:41:50 +03:00 committed by GitHub
parent e3e4d84f33
commit 1c81d2a481

View File

@ -100,11 +100,13 @@ of unused parameters (especially return parameters) can be omitted.
f({value: 2, key: 3}); f({value: 2, key: 3});
} }
// omitted parameters // omitted name for parameter
function func(uint k, uint) returns(uint) { function func(uint k, uint) returns(uint) {
return k; 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 Order of Evaluation of Expressions
================================== ==================================