Skip to content

Commit bb9a331

Browse files
committed
edits
1 parent 642dc13 commit bb9a331

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/crud/configure.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ Configure CRUD Operations
2222
Retryable Reads and Writes
2323
--------------------------
2424

25-
{+driver-short+} automatically retries certain read and write operations a single time
25+
The +driver-short+} automatically retries certain read and write operations a single time
2626
if they fail due to a network or server error.
2727

2828
You can explicitly disable retryable reads or retryable writes by setting the
29-
``retryReads`` or ``retryWrites`` option to ``False`` when creating a new client
29+
``RetryReads`` or ``RetryWrites`` option to ``False`` when creating a new client
3030
by using the ``options.Client`` struct.
3131

32-
The following example disables retryable reads and writes for a client:
32+
The following example disables retryable reads and writes for a client by using
33+
the ``ClientOptions`` setter functions:
3334

3435
.. literalinclude:: /includes/fundamentals/code-snippets/CRUD/retryableReadsWrites.go
3536
:start-after: start-retryable-example

source/includes/fundamentals/code-snippets/CRUD/retryableReadsWrites.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func main() {
2222
SetRetryWrites(false).
2323
SetRetryReads(false)
2424

25-
// Creates a new client and connects to the server
25+
// Creates a new client using the specified options
2626
client, err := mongo.Connect(clientOps)
2727
if err != nil {
2828
panic(err)

0 commit comments

Comments
 (0)