Skip to content

Commit ff52fb1

Browse files
committed
update code intros
1 parent cf34824 commit ff52fb1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/fundamentals/transactions.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ to learn more about these methods.
8888
Example
8989
-------
9090

91+
This example uses the following {+language+} data class to model its documents:
92+
93+
.. literalinclude:: /examples/generated/TransactionsTest.snippet.data-class.kt
94+
:language: kotlin
95+
9196
The following example demonstrates how you can create a session, create a transaction,
92-
and commit a changes to existing documents:
97+
and commit changes to existing documents:
9398

9499
1. Create a session from the client using the ``startSession()`` method.
95100
#. Use the ``startTransaction()`` method to start a transaction.
96101
#. Update the specified documents, then use the ``commitTransaction()`` method if all
97102
operations succeed, or ``abortTransaction()`` if any operations fail.
98103

99-
This example uses the following {+language+} data classes to model its documents:
100-
101-
.. literalinclude:: /examples/generated/TransactionsTest.snippet.data-class.kt
102-
:language: kotlin
103-
104104
.. literalinclude:: /examples/generated/TransactionsTest.snippet.transaction-function.kt
105105
:language: kotlin
106106

0 commit comments

Comments
 (0)