summaryrefslogtreecommitdiffhomepage
path: root/solidity.html.markdown
diff options
context:
space:
mode:
authorNemil Dalal <nemild@gmail.com>2015-12-29 13:05:45 -0500
committerNemil Dalal <nemild@gmail.com>2015-12-29 13:05:45 -0500
commitd97c7be291b6bc3fb1477c30ac96b5b6cc36b9c4 (patch)
treee29f7d83a0637c1e7d28f687dd64c6d3530d71cf /solidity.html.markdown
parent7e4a42d0b8cec4c0e2a6b90ad261c7755afe1136 (diff)
Minor wording changes, typos
Diffstat (limited to 'solidity.html.markdown')
-rw-r--r--solidity.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/solidity.html.markdown b/solidity.html.markdown
index 6705dde9..71a44b92 100644
--- a/solidity.html.markdown
+++ b/solidity.html.markdown
@@ -63,7 +63,7 @@ contract SimpleBank { // CamelCase
function deposit() public returns (uint) {
balances[msg.sender] += msg.value;
// no "this." or "self." required with state variable
- // all values initialized to 0 by default
+ // all values set to data type's initial value by default
DepositMade(msg.sender, msg.value); // fire event
@@ -289,7 +289,7 @@ tx.origin; // address of sender of the transaction
tx.gasprice; // gas price of the transaction
// ** block - Information about current block **
-now // current time (approximately), alias for block.timestamp (uses Unix time)
+now; // current time (approximately), alias for block.timestamp (uses Unix time)
block.number; // current block number
block.difficulty; // current block difficulty
block.blockhash(1); // returns bytes32, only works for most recent 256 blocks
@@ -428,7 +428,7 @@ contract Consumer {
// Set feed to new instance of contract
function createNewFeed() {
- feed = new InfoFeed(); // constructor called
+ feed = new InfoFeed(); // new instance created; constructor called
}
function callFeed() {