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
5050 .. code-block:: javascript
5151 :emphasize-lines: 2
5252
53- const uri = "mongodb://<hostname:<port>";
53+ const uri = "mongodb://<hostname> :<port>";
5454 const client = new MongoClient(uri, { timeoutMS: 30000 });
5555
5656 .. tab:: Connection String
@@ -59,7 +59,7 @@ The following code examples use the ``timeoutMS`` option to specify a timeout of
5959 .. code-block:: javascript
6060 :emphasize-lines: 1
6161
62- const uri = "mongodb://<hostname:<port>?timeoutMS=30000";
62+ const uri = "mongodb://<hostname> :<port>?timeoutMS=30000";
6363 const client = new MongoClient(uri);
6464
6565.. note::
You can’t perform that action at this time.
0 commit comments