Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 46f9f6b

Browse files
Typically you will have only one Web3 connection, use const (#3967)
Co-authored-by: Gregory Markou <[email protected]>
1 parent 9c31732 commit 46f9f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ If this property is ``null`` you should connect to a remote/local node.
3737
3838
// In Node.js use: const Web3 = require('web3');
3939
40-
let web3 = new Web3(Web3.givenProvider || "ws://localhost:8545");
40+
const web3 = new Web3(Web3.givenProvider || "ws://localhost:8545");
4141
4242
That's it! now you can use the ``web3`` object.

0 commit comments

Comments
 (0)