diff options
author | chriseth <chris@ethereum.org> | 2017-12-19 19:39:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 19:39:28 +0800 |
commit | a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f (patch) | |
tree | eed46e583af1d0bd4fbc809f60f347fb23f1dc9a | |
parent | 2d800e67e4ef225549b6804b4e5dc344277c7cf4 (diff) | |
parent | ddad6a3f80fed086bd605a6e7606b044174f3b12 (diff) | |
download | dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar.gz dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar.bz2 dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar.lz dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar.xz dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.tar.zst dexon-solidity-a4b886ad3ce2c8860a6f9f91540eecbc9ffc741f.zip |
Merge pull request #3345 from kevinwucodes/patch-1
add clarity to destructuring assignments with leading comma
-rw-r--r-- | docs/control-structures.rst | 1 |
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: |