aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin Wu <kevin.wu@gmail.com>2017-12-19 01:55:13 +0800
committerGitHub <noreply@github.com>2017-12-19 01:55:13 +0800
commitddad6a3f80fed086bd605a6e7606b044174f3b12 (patch)
tree9644937a7b49db805465bfcde5885566dc0eac77 /docs
parentb3fb73f53f69372754a7cb70b8589018d5bab5b6 (diff)
downloaddexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar.gz
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar.bz2
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar.lz
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar.xz
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.tar.zst
dexon-solidity-ddad6a3f80fed086bd605a6e7606b044174f3b12.zip
add clarity to destructuring assignments
Diffstat (limited to 'docs')
-rw-r--r--docs/control-structures.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 0c5825bc..1a8ee25b 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -295,6 +295,7 @@ Solidity internally allows tuple types, i.e. a list of objects of potentially di
// the rest of the values are discarded.
(data.length,) = f(); // Sets the length to 7
// The same can be done on the left side.
+ // If the tuple begins in an empty component, the beginning values are discarded.
(,data[3]) = f(); // Sets data[3] to 2
// Components can only be left out at the left-hand-side of assignments, with
// one exception: