mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[solidity/en] Fixed #2873
This commit is contained in:
parent
a8ad68aede
commit
e27533f7d1
@ -262,7 +262,7 @@ Bank b = Bank({
|
||||
// or
|
||||
Bank c = Bank(msg.sender, 5);
|
||||
|
||||
c.amount = 5; // set to new value
|
||||
c.balance = 5; // set to new value
|
||||
delete b;
|
||||
// sets to initial value, set all variables in struct to 0, except mappings
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user