Variable assignment wording change

This commit is contained in:
Kevin Florenzano 2018-04-05 17:12:48 +09:00
parent 884ea39d85
commit d662622b25

View File

@ -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);