Skip to content

Commit

Permalink
fix typo in doc (web3#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersondarcy authored and frozeman committed Apr 12, 2018
1 parent 271cf78 commit 71d6739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/web3-eth-subscribe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Example
console.log(result);
})
.on("data", function(transaction){
console.log(transaction);
console.log(transaction);
});
// unsubscribes the subscription
Expand Down Expand Up @@ -226,7 +226,7 @@ Example
.. code-block:: javascript
var subscription = web3.eth.subscribe('newBlockHeaders', function(error, result){
if (!error)
if (error)
console.log(error);
})
.on("data", function(blockHeader){
Expand Down

0 comments on commit 71d6739

Please sign in to comment.