aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-13 20:12:06 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-01 23:18:17 +0800
commitcea46acef75781d80bf4797f9e836ce8077796fd (patch)
tree58a14f695e5ce55710a76ff31413d39bf40d9d3a /docs
parent30d9961efb7c0056a2b189b642489bee92048442 (diff)
downloaddexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar.gz
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar.bz2
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar.lz
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar.xz
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.tar.zst
dexon-solidity-cea46acef75781d80bf4797f9e836ce8077796fd.zip
Update documentation.
Diffstat (limited to 'docs')
-rw-r--r--docs/solidity-by-example.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 3934d29d..3f054297 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -232,7 +232,7 @@ activate themselves.
// absolute unix timestamps (seconds since 1970-01-01)
// or time periods in seconds.
address public beneficiary;
- uint public auctionEnd;
+ uint public auctionEndTime;
// Current state of the auction.
address public highestBidder;
@@ -261,7 +261,7 @@ activate themselves.
address _beneficiary
) public {
beneficiary = _beneficiary;
- auctionEnd = now + _biddingTime;
+ auctionEndTime = now + _biddingTime;
}
/// Bid on the auction with the value sent
@@ -278,7 +278,7 @@ activate themselves.
// Revert the call if the bidding
// period is over.
require(
- now <= auctionEnd,
+ now <= auctionEndTime,
"Auction already ended."
);
@@ -337,7 +337,7 @@ activate themselves.
// external contracts.
// 1. Conditions
- require(now >= auctionEnd, "Auction not yet ended.");
+ require(now >= auctionEndTime, "Auction not yet ended.");
require(!ended, "auctionEnd has already been called.");
// 2. Effects