aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-10 21:18:00 +0800
committerGitHub <noreply@github.com>2018-07-10 21:18:00 +0800
commitd9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56 (patch)
treef7755f7c68f324eaa784abff71e8fd37747401df /docs
parent5c404fcfac113d2e25f80b298e485099baa27fb8 (diff)
parent951b745bd9324c2b07049ab9565ed7c3438fcb89 (diff)
downloaddexon-solidity-d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56.tar.gz
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.rst5
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.
}
}