Skip to content

Commit ab41d1c

Browse files
DOCSP-49332 Fix hostname typo (mongodb#1087) (mongodb#1088)
(cherry picked from commit 1a7aa49) Co-authored-by: lindseymoore <[email protected]>
1 parent 01d465b commit ab41d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/fundamentals/connection/csot.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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::

0 commit comments

Comments
 (0)