Skip to content

Commit

Permalink
chore: fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
msiemens committed Nov 14, 2020
1 parent ccf1c3f commit d71bde7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,14 @@ Of course you also can write your own operations:
In order to perform multiple update operations at once, you can use the
``update_multiple`` method like this:

>>> db.update_muliple([
>>> db.update_multiple([
... ({'int': 2}, where('char') == 'a'),
... ({'int': 4}, where('char') == 'b'),
... ])

You also can use mix normal updates with update operations:

>>> db.update_muliple([
>>> db.update_multiple([
... ({'int': 2}, where('char') == 'a'),
... ({delete('int'), where('char') == 'b'),
... ])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tinydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def test_update_ids(db: TinyDB):
def test_update_multiple(db: TinyDB):
assert len(db) == 3

db.update_muliple([
db.update_multiple([
({'int': 2}, where('char') == 'a'),
({'int': 4}, where('char') == 'b'),
])
Expand Down

0 comments on commit d71bde7

Please sign in to comment.