Skip to content

Commit 2e07a13

Browse files
committed
implement feedback
1 parent 7ce5b57 commit 2e07a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/write/transactions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ The following example shows how you can create a session, create a
117117
transaction, and commit a multi-document insert operation through the
118118
following steps:
119119

120-
1. Create a session from the client using the ``start_session()`` method.
120+
1. Create a session from the client by using the ``start_session()`` method.
121121
#. Use the ``with_transaction()`` method to start a transaction.
122122
#. Insert multiple documents. The ``with_transaction()`` method runs the
123123
insert operation and commits the transaction. If any operation results in
124124
errors, ``with_transaction()`` cancels the transaction. This method
125125
ensures that the session closes properly when the block exits.
126-
#. Close the connection to the server with the ``client.close()`` method.
126+
#. Close the connection to the server by using the ``client.close()`` method.
127127

128128
.. literalinclude:: /includes/write/transaction.py
129129
:start-after: start-transaction

0 commit comments

Comments
 (0)