From 71d6739ddcd971f1d1bf54cbac9a4f63722ec870 Mon Sep 17 00:00:00 2001 From: jeffersondarcy <4200365+jeffersondarcy@users.noreply.github.com> Date: Thu, 12 Apr 2018 11:46:29 +0200 Subject: [PATCH] fix typo in doc (#1461) --- docs/web3-eth-subscribe.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/web3-eth-subscribe.rst b/docs/web3-eth-subscribe.rst index 55c3307b0f4..173fae49e5f 100644 --- a/docs/web3-eth-subscribe.rst +++ b/docs/web3-eth-subscribe.rst @@ -156,7 +156,7 @@ Example console.log(result); }) .on("data", function(transaction){ - console.log(transaction); + console.log(transaction); }); // unsubscribes the subscription @@ -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){