mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Variable assignment wording change
This commit is contained in:
parent
884ea39d85
commit
d662622b25
@ -288,7 +288,7 @@ Solidity internally allows tuple types, i.e. a list of objects of potentially di
|
||||
uint x;
|
||||
bool b;
|
||||
uint y;
|
||||
// These pre-existing variables can then be assigned to the tuple values
|
||||
// Tuple values can be assigned to these pre-existing variables
|
||||
(x, b, y) = f();
|
||||
// Common trick to swap values -- does not work for non-value storage types.
|
||||
(x, y) = (y, x);
|
||||
|
Loading…
Reference in New Issue
Block a user