Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmarie17 committed Sep 9, 2024
1 parent 2272a23 commit ba73ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/includes/write/transaction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fun main() {
.writeConcern(WriteConcern.MAJORITY)
.build()

// Use the withTransaction method to start a transaction and execute the lambda function
// Uses the withTransaction method to start a transaction and run the given function
session.withTransaction({
insertDocuments(session)
println("Transaction succeeded")
Expand Down
2 changes: 1 addition & 1 deletion source/write/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Example
-------

The following example demonstrates how to create a session, create a
transaction, and insert documents into multiple collections in one transaction
transaction, and insert documents into a collection in one transaction
through the following steps:

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

0 comments on commit ba73ae2

Please sign in to comment.