Skip to content

Commit

Permalink
Parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth authored and axic committed May 3, 2017
1 parent d58a4e0 commit e9458be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/solidity-by-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ activate themselves.

// Revert the call if the bidding
// period is over.
require(now <= auctionStart + biddingTime);
require(now <= (auctionStart + biddingTime));

// If the bid is not higher, send the
// money back.
Expand Down Expand Up @@ -543,7 +543,7 @@ Safe Remote Purchase
function Purchase() payable {
seller = msg.sender;
value = msg.value / 2;
require(2 * value == msg.value);
require((2 * value) == msg.value);
}

modifier condition(bool _condition) {
Expand Down Expand Up @@ -588,7 +588,7 @@ Safe Remote Purchase
/// is called.
function confirmPurchase()
inState(State.Created)
condition(msg.value == 2 * value)
condition(msg.value == (2 * value))
payable
{
purchaseConfirmed();
Expand Down

0 comments on commit e9458be

Please sign in to comment.