mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
RHS->right hand side
This commit is contained in:
parent
ef6ad57c9c
commit
ab5898f11c
@ -559,7 +559,7 @@ shown in the following example:
|
||||
function newCampaign(address payable beneficiary, uint goal) public returns (uint campaignID) {
|
||||
campaignID = numCampaigns++; // campaignID is return variable
|
||||
// We cannot use "campaigns[campaignID] = Campaign(beneficiary, goal, 0, 0)"
|
||||
// because the RHS creates a memory-struct "Campaign" that contains a mapping.
|
||||
// because the right hand side creates a memory-struct "Campaign" that contains a mapping.
|
||||
Campaign storage c = campaigns[campaignID];
|
||||
c.beneficiary = beneficiary;
|
||||
c.fundingGoal = goal;
|
||||
|
Loading…
Reference in New Issue
Block a user