Skip to content

Commit f8c386e

Browse files
committed
edits
1 parent 40f0048 commit f8c386e

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

source/connect.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ Learn how to set up a connection and specify connection behavior from your
3636
application to a MongoDB deployment using the {+driver-short+} in the following
3737
sections:
3838

39-
- :ref:`golang-mongoclient`: Create a MongoClient object
40-
to connect to a MongoDB deployment.
41-
- :ref:`golang-connection-options`: Customize the connection behavior of the
42-
MongoClient object.
39+
- :ref:`golang-mongoclient`: Learn how to create a MongoClient object to connect
40+
to a MongoDB deployment.
41+
- :ref:`golang-connection-options`: Learn how to customize your connection
42+
behavior.
4343
- :ref:`golang-connection-troubleshooting`: Explore solutions to common
4444
connection issues.
4545

source/connect/mongoclient.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,24 @@ To specify your connection URI, pass it to the ``ApplyURI()`` method, which
104104
returns a new ``ClientOptions`` instance. To set any other options, call the
105105
relevant helper method from the options package.
106106

107-
To learn more about connection options, see the :ref:`Connection Options section
108-
<golang-connection-options>`. To learn more about creating a client, see the API
109-
documentation for `Client <{+api+}/mongo#Client>`__ and `Connect()
107+
To learn more about connection options, see the :ref:`Connection Options
108+
<golang-connection-options>` section. To learn more about creating a client, see
109+
the API documentation for `Client <{+api+}/mongo#Client>`__ and `Connect()
110110
<{+api+}/mongo#Connect>`__.
111111

112112
You can set the {+stable-api+} version as an option to avoid breaking changes
113113
when you upgrade to a new server version. To learn more about the {+stable-api+}
114114
feature, see the :ref:`{+stable-api+} page <golang-stable-api>`.
115115

116+
.. _go-connection-example-code:
117+
116118
Example
117119
~~~~~~~
118120

119121
The following code shows how you can create a client that uses an Atlas
120122
connection string and the {+stable-api+} version, connect to MongoDB, and verify
121123
that the connection is successful:
122124

123-
.. _go-connection-example-code:
124-
125125
.. literalinclude:: /includes/fundamentals/code-snippets/srv.go
126126
:language: go
127127
:copyable:
@@ -143,16 +143,16 @@ Other Ways to Connect to MongoDB
143143
--------------------------------
144144

145145
If you are connecting to a single MongoDB server instance or replica set
146-
that is not hosted on Atlas, see the following sections to find out how to
146+
that is not hosted on Atlas, see the following sections to learn how to
147147
connect.
148148

149149
Connect to a MongoDB Server on Your Local Machine
150150
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151151

152152
.. include:: /includes/localhost-connection.rst
153153

154-
To test whether you can connect to your server, replace the connection
155-
string with your localhost connection string in the preceding code example.
154+
To test whether you can connect to your server, replace the connection string
155+
with your localhost connection string in the preceding `code example <go-connection-example-code>`.
156156

157157
Connect to a Replica Set
158158
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -183,7 +183,7 @@ When connecting to a replica set, the driver takes the following actions by defa
183183
However, to ensure connectivity when the specified host
184184
is unavailable, you must provide the full list of hosts.
185185

186-
To learn more about replication in MongoDB, see the :manual:`Replication </replication>` section of server manual.
186+
To learn more about replication in MongoDB, see the :manual:`Replication </replication>` section of Server manual.
187187

188188
Direct Connection
189189
`````````````````

source/includes/localhost-connection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ purposes, complete the following steps:
1111

1212
.. important::
1313

14-
Always secure your MongoDB server from malicious attacks. See our
15-
:manual:`Security Checklist </administration/security-checklist/>` for a
16-
list of security recommendations.
14+
Always secure your MongoDB server from malicious attacks. See the
15+
:manual:`Security Checklist </administration/security-checklist/>` in the
16+
Server manual for a list of security recommendations.
1717

1818
After you successfully start your MongoDB server, specify your connection
1919
string in your driver connection code.
@@ -23,5 +23,5 @@ If your MongoDB Server is running locally, you can use the connection string
2323
configured your server to listen for incoming connections.
2424

2525
For more information on how to specify a different hostname or IP address, see
26-
:manual:`Connection Strings </reference/connection-string/>` in the server
26+
:manual:`Connection Strings </reference/connection-string/>` in the Server
2727
manual.

0 commit comments

Comments
 (0)