File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
source/fundamentals/connection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The following code examples use the ``timeoutMS`` option to specify a timeout of
50
50
.. code-block:: javascript
51
51
:emphasize-lines: 2
52
52
53
- const uri = "mongodb://<hostname:<port>";
53
+ const uri = "mongodb://<hostname> :<port>";
54
54
const client = new MongoClient(uri, { timeoutMS: 30000 });
55
55
56
56
.. tab:: Connection String
@@ -59,7 +59,7 @@ The following code examples use the ``timeoutMS`` option to specify a timeout of
59
59
.. code-block:: javascript
60
60
:emphasize-lines: 1
61
61
62
- const uri = "mongodb://<hostname:<port>?timeoutMS=30000";
62
+ const uri = "mongodb://<hostname> :<port>?timeoutMS=30000";
63
63
const client = new MongoClient(uri);
64
64
65
65
.. note::
You can’t perform that action at this time.
0 commit comments