Skip to content

Commit c9aae10

Browse files
lyndsysimonbehackett
authored andcommitted
Updates example using old-style hostname and port specification to use the standard connection string format.
1 parent 7ed8be5 commit c9aae10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ specify the host and port explicitly, as follows:
4545

4646
.. doctest::
4747

48-
>>> client = MongoClient('localhost', 27017)
48+
>>> client = MongoClient('mongodb://localhost:27017/')
4949

5050
Getting a Database
5151
------------------

0 commit comments

Comments
 (0)