diff options
author | chriseth <chris@ethereum.org> | 2018-07-10 21:18:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 21:18:00 +0800 |
commit | d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56 (patch) | |
tree | f7755f7c68f324eaa784abff71e8fd37747401df /docs | |
parent | 5c404fcfac113d2e25f80b298e485099baa27fb8 (diff) | |
parent | 951b745bd9324c2b07049ab9565ed7c3438fcb89 (diff) | |
download | dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.gz dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.bz2 dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.lz dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.xz dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.zst dexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.zip |
Merge pull request #4465 from ethereum/tupleAssignment
Disallow tuple assignment with mismatching number of components.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/control-structures.rst | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 8ced0fbc..7beca65e 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -293,11 +293,6 @@ These can then either be assigned to newly declared variables or to pre-existing (x, y) = (y, x); // Components can be left out (also for variable declarations). (data.length,,) = f(); // Sets the length to 7 - // Components can only be left out at the left-hand-side of assignments, with - // one exception: - (x,) = (1,); - // (1,) is the only way to specify a 1-component tuple, because (1) is - // equivalent to 1. } } |