Skip to content

Commit 1a7aa49

Browse files
authored
DOCSP-49332 Fix hostname typo (#1087)
1 parent 3c73d87 commit 1a7aa49

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)