Skip to content

Commit 33e3327

Browse files
CrsiXmyOmikron
authored andcommitted
Updated the guard description based on maintainer comments
1 parent f5be3e3 commit 33e3327

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/rorm/transactions.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ pub async fn create_user(
9797

9898
## Using a Guard
9999

100-
When a single transaction may be used across function calls,
101-
or when either a transaction or the database itself may be passed to
102-
these functions, a `TransactionGuard` can be used. It can be
100+
When either a transaction or the database itself may be passed
101+
to a function, a `TransactionGuard` can be used. It can be
103102
retrieved by an `Executor`, which is implemented by both the
104103
`Transaction` and `Database`. The guard is responsible for
105104
committing the transaction if necessary; since mid-transaction

0 commit comments

Comments
 (0)