diff --git a/tinydb/operations.py b/tinydb/operations.py index db52f9b6..47c34927 100644 --- a/tinydb/operations.py +++ b/tinydb/operations.py @@ -31,7 +31,7 @@ def transform(doc): def subtract(field, n): """ - Substract ``n`` to a given field in the document. + Subtract ``n`` to a given field in the document. """ def transform(doc): doc[field] -= n diff --git a/tinydb/queries.py b/tinydb/queries.py index 0cf8e032..3344eb5a 100644 --- a/tinydb/queries.py +++ b/tinydb/queries.py @@ -80,7 +80,7 @@ def __call__(self, value: Mapping) -> bool: Evaluate the query to check if it matches a specified value. :param value: The value to check. - :return: Wether the value matchs this query. + :return: Whether the value matches this query. """ return self._test(value)