File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fun main() {
38
38
.writeConcern(WriteConcern .MAJORITY )
39
39
.build()
40
40
41
- // Use the withTransaction method to start a transaction and execute the lambda function
41
+ // Uses the withTransaction method to start a transaction and run the given function
42
42
session.withTransaction({
43
43
insertDocuments(session)
44
44
println (" Transaction succeeded" )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ Example
104
104
-------
105
105
106
106
The following example demonstrates how to create a session, create a
107
- transaction, and insert documents into multiple collections in one transaction
107
+ transaction, and insert documents into a collection in one transaction
108
108
through the following steps:
109
109
110
110
1. Create a session from the client by using the ``startSession()`` method.
You can’t perform that action at this time.
0 commit comments