Skip to content

Commit 3f9bd76

Browse files
committed
edits and add page to TOC
1 parent 46de8bb commit 3f9bd76

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

source/connect.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ Connect to MongoDB
2424

2525
Create a Client </connect/mongoclient>
2626
Stable API </connect/stable-api>
27-
Choose a Connection Target </conenct/connection-targets>
28-
27+
Choose a Connection Target </connect/connection-targets>

source/connect/connection-targets.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ is specified, the client will use the ``admin`` database:
6868
:end-before: end-local-connection
6969
:dedent:
7070

71-
You can also specify the host, port, and database to connect using the URI
72-
syntax:
71+
You can also specify the host, port, and database to connect to using a
72+
connection string:
7373

7474
.. literalinclude:: /includes/connect/connection-targets.rb
7575
:language: ruby
7676
:start-after: start-local-connection-uri
7777
:end-before: end-local-connection-uri
7878
:dedent:
7979

80-
You can use ``localhost`` to specify your host name, as well. The following
81-
code example connects to ``localhost`` on port ``27017``:
80+
You can also specify your host as ``localhost``. The following code example
81+
connects to ``localhost`` on port ``27017``:
8282

8383
.. literalinclude:: /includes/connect/connection-targets.rb
8484
:language: ruby
@@ -105,7 +105,8 @@ The following example shows how to specify three members of the replica set:
105105
:end-before: end-replica-set
106106
:dedent:
107107

108-
The following example shows how to connect to the replica set using the URI syntax:
108+
The following example shows how to connect to the replica set using a connection
109+
string:
109110

110111
.. literalinclude:: /includes/connect/connection-targets.rb
111112
:language: ruby
@@ -114,7 +115,7 @@ The following example shows how to connect to the replica set using the URI synt
114115
:dedent:
115116

116117
The following example shows how to verify the replica set name upon connection
117-
by using the ``replica_set`` option or the ``replicaSet`` URI option:
118+
by using the ``replica_set`` option or the ``replicaSet`` connection string option:
118119

119120
.. literalinclude:: /includes/connect/connection-targets.rb
120121
:language: ruby

source/includes/connect/connection-targets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646

4747
# Or using the URI syntax:
4848
Mongo::Client.new("mongodb://host1:27017,host2:27018, host3:27019/mydb?replicaSet=myapp")
49-
# end-replica-set-option
49+
# end-replica-set-option

0 commit comments

Comments
 (0)