mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove named return
Named returns are not explained in this introduction; they also provide little value in these examples.
This commit is contained in:
parent
7820f80192
commit
04eb6e85f2
@ -25,7 +25,7 @@ Storage
|
|||||||
storedData = x;
|
storedData = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get() constant returns (uint retVal) {
|
function get() constant returns (uint) {
|
||||||
return storedData;
|
return storedData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ like this one. The accessor function created by the ``public`` keyword
|
|||||||
is a bit more complex in this case. It roughly looks like the
|
is a bit more complex in this case. It roughly looks like the
|
||||||
following::
|
following::
|
||||||
|
|
||||||
function balances(address _account) returns (uint balance) {
|
function balances(address _account) returns (uint) {
|
||||||
return balances[_account];
|
return balances[_account];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user