mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1323 from varunagarwal315/patch-1
Update solidity-by-example.rst
This commit is contained in:
commit
d97d267a96
@ -170,6 +170,15 @@ of votes.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Calls winningProposal() function to get the index
|
||||
// of the winner contained in the proposals array and then
|
||||
// returns the name of the winner
|
||||
function winnerName() constant
|
||||
returns (bytes32 winnerName)
|
||||
{
|
||||
winnerName = proposals[winningProposal()].name;
|
||||
}
|
||||
}
|
||||
|
||||
Possible Improvements
|
||||
|
Loading…
Reference in New Issue
Block a user