Skip to content

Commit d07de20

Browse files
committed
SA feedback
1 parent 0f307ac commit d07de20

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source/connect/connection-targets.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Replica Sets
7171
------------
7272

7373
To connect to a replica set, specify the hostnames (or IP addresses) and
74-
port numbers of the replica-set members in your connection string.
74+
port numbers of the replica set members in your connection string.
7575

7676
The following code shows how to use {+driver-short+} to connect to a replica set
7777
that contains three hosts:
@@ -92,8 +92,7 @@ automatic discovery, perform one of the following actions:
9292

9393
In the following example, the driver uses a sample connection URI to connect to the
9494
MongoDB replica set ``sampleRS``, which is running on port ``27017`` of three different
95-
hosts, including ``host1``. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous`
96-
tab to see the corresponding code:
95+
hosts, including ``host1``:
9796

9897
.. literalinclude:: /includes/fundamentals/code-examples/connection/ReplicaSetConnection.cs
9998
:language: csharp
@@ -113,14 +112,14 @@ balances operations across multiple MongoDB deployments, see the
113112

114113
If you construct a ``MongoClient`` and immediately print the string representation
115114
of its ``nodes`` attribute, the list might be empty while the client connects to
116-
the replica-set members.
115+
the replica set members.
117116

118117
Initialization
119118
~~~~~~~~~~~~~~
120119

121120
To initialize a replica set, you must connect directly to a single member. To do so,
122121
set the ``directConnection`` connection
123-
option to ``True``. You can do this in two ways: by passing an argument to the
122+
option to ``true``. You can do this in two ways: by passing an argument to the
124123
``MongoClient`` constructor or through a parameter in your connection string. Select the
125124
:guilabel:`MongoClientSettings` or :guilabel:`Connection String` tab to see the corresponding code.
126125

@@ -147,7 +146,7 @@ DNS Service Discovery
147146

148147
To use DNS service discovery to look up the DNS SRV record of the service you're connecting to,
149148
specify the SRV connection format in your connection string. Additionally, if you enable
150-
the SRV connection format, {+driver-short+} automatically re-scans for new hosts without
149+
the SRV connection format, the {+driver-short+} automatically re-scans for new hosts without
151150
having to change the client configuration.
152151

153152
The following code shows a connection string that uses the SRV connection format:

0 commit comments

Comments
 (0)