aboutsummaryrefslogtreecommitdiffstats
path: root/docs/introduction-to-smart-contracts.rst
diff options
context:
space:
mode:
authorethers <ethereum@outlook.com>2016-11-13 12:02:43 +0800
committerGitHub <noreply@github.com>2016-11-13 12:02:43 +0800
commit04eb6e85f22d21b3def8ed448f59aaec44457cc9 (patch)
tree2da42faf357f6236ac155cbc99eb9ebc17261b4d /docs/introduction-to-smart-contracts.rst
parent7820f80192807b228e57ad9879d5ce2787a4d278 (diff)
downloaddexon-solidity-04eb6e85f22d21b3def8ed448f59aaec44457cc9.tar.gz
dexon-solidity-04eb6e85f22d21b3def8ed448f59aaec44457cc9.tar.zst
dexon-solidity-04eb6e85f22d21b3def8ed448f59aaec44457cc9.zip
Remove named return
Named returns are not explained in this introduction; they also provide little value in these examples.
Diffstat (limited to 'docs/introduction-to-smart-contracts.rst')
-rw-r--r--docs/introduction-to-smart-contracts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index eeea85a7..4a3de441 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -25,7 +25,7 @@ Storage
storedData = x;
}
- function get() constant returns (uint retVal) {
+ function get() constant returns (uint) {
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
following::
- function balances(address _account) returns (uint balance) {
+ function balances(address _account) returns (uint) {
return balances[_account];
}