Skip to content

Commit b34ba7c

Browse files
committed
RR feedback 2
1 parent 7942d08 commit b34ba7c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/connect/mongoclient.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ You can configure settings for the ``MongoClient`` object by passing a
106106

107107
.. code-block:: csharp
108108

109-
var mongoClientSettings = MongoClientSettings
110-
.FromConnectionString("mongodb://localhost:27017/");
111-
.UseTls = true;
112-
var client = new MongoClient(mongoClientSettings);
109+
var connectionString = "mongodb://localhost:27017/"
110+
var settings = MongoClientSettings.FromConnectionString(connectionString);
111+
settings.UseTls = true;
113112

114-
For a full list of the settings you can configure, see the
113+
To view a full list of the settings you can configure, see the
115114
:ref:`csharp-connection-options` guide.
116115

117116
API Documentation

0 commit comments

Comments
 (0)