Skip to content

Commit

Permalink
Updated the guard description based on maintainer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CrsiX authored and myOmikron committed Jul 3, 2024
1 parent f5be3e3 commit 33e3327
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/rorm/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ pub async fn create_user(

## Using a Guard

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

0 comments on commit 33e3327

Please # to comment.