Skip to content

Commit

Permalink
fix typos in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Mar 1, 2023
1 parent ba633f6 commit 3564211
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Added support for savepoints within transactions.

.. code-block:: python
await DB.transaction() as transaction:
async with DB.transaction() as transaction:
await Manager.objects().create(name="Great manager")
savepoint = await transaction.savepoint()
await Manager.objects().create(name="Great manager")
Expand All @@ -19,8 +19,8 @@ The behaviour of nested context managers has also been changed slightly.

.. code-block:: python
await DB.transaction() as transaction:
await DB.transaction() as transaction:
async with DB.transaction():
async with DB.transaction():
# This used to raise an exception
We no longer raise an exception if there are nested transaction context
Expand All @@ -30,8 +30,8 @@ If you want the existing behaviour:

.. code-block:: python
await DB.transaction() as transaction:
await DB.transactiona(allow_nested=False) as transaction:
async with DB.transaction():
async with DB.transactiona(allow_nested=False):
# TransactionError!
-------------------------------------------------------------------------------
Expand Down

0 comments on commit 3564211

Please sign in to comment.