Skip to content

Commit ba73ae2

Browse files
committed
update example
1 parent 2272a23 commit ba73ae2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/includes/write/transaction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun main() {
3838
.writeConcern(WriteConcern.MAJORITY)
3939
.build()
4040

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
4242
session.withTransaction({
4343
insertDocuments(session)
4444
println("Transaction succeeded")

source/write/transactions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Example
104104
-------
105105

106106
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
108108
through the following steps:
109109

110110
1. Create a session from the client by using the ``startSession()`` method.

0 commit comments

Comments
 (0)