aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-02 03:53:56 +0800
committerGitHub <noreply@github.com>2018-08-02 03:53:56 +0800
commita78565e44fbcb1d2e3244a6100c0da464ca73c19 (patch)
treed00c6b384cc87ae82a46ee2b71e9045502854a99 /docs
parent1f832e068b2d2c79fff870742d867b655b62f691 (diff)
parentce7c7aca798bd11f51e23ef0ff104405d09fb220 (diff)
downloaddexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar.gz
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar.bz2
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar.lz
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar.xz
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.tar.zst
dexon-solidity-a78565e44fbcb1d2e3244a6100c0da464ca73c19.zip
Merge pull request #4508 from ethereum/nameCollisionCrash
[BREAKING] Don't exclude public state variables when looking for conflicting declarations.
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