diff --git a/docs/usage.rst b/docs/usage.rst index 7ed9f2fb..81eac5f5 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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'), ... ]) diff --git a/tests/test_tinydb.py b/tests/test_tinydb.py index 2e2e4297..01189137 100644 --- a/tests/test_tinydb.py +++ b/tests/test_tinydb.py @@ -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'), ])