aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-26 21:46:13 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-27 06:05:09 +0800
commit6eaf17db38e82a6c26fe63cd0eb715243efc5c70 (patch)
tree9fc9bf2247301704062b766e40d3a2b684d68de5 /docs/solidity-by-example.rst
parentbf10cd6c956362789047b4771071417908e9e206 (diff)
downloaddexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.gz
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.bz2
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.lz
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.xz
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.zst
dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.zip
Avoid using var if not required
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index e1fd4914..ddbca471 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -289,7 +289,7 @@ activate themselves.
/// Withdraw a bid that was overbid.
function withdraw() returns (bool) {
- var amount = pendingReturns[msg.sender];
+ uint amount = pendingReturns[msg.sender];
if (amount > 0) {
// It is important to set this to zero because the recipient
// can call this function again as part of the receiving call
@@ -492,7 +492,7 @@ high or low invalid bids.
/// Withdraw a bid that was overbid.
function withdraw() returns (bool) {
- var amount = pendingReturns[msg.sender];
+ uint amount = pendingReturns[msg.sender];
if (amount > 0) {
// It is important to set this to zero because the recipient
// can call this function again as part of the receiving call