diff --git a/docs/include_package-net.rst b/docs/include_package-net.rst index ddba6ec7eae..3b0b0bc4ea8 100644 --- a/docs/include_package-net.rst +++ b/docs/include_package-net.rst @@ -66,7 +66,7 @@ Example .. code-block:: javascript - web3.eth.isListening() + web3.eth.net.isListening() .then(console.log); > true @@ -101,6 +101,6 @@ Example .. code-block:: javascript - web3.eth.getPeerCount() + web3.eth.net.getPeerCount() .then(console.log); > 25