diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 4e18a21bd8..81f2d22b04 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -116,7 +116,7 @@ Nonreentrancy locks work by setting a specially allocated storage slot to a ```` state), as ``view`` functions can only read the state, not change it. -You can view where the nonreentrant key is physically laid out in storage by using ``vyper`` with the ``-f layout`` option (e.g., ``vyper -f layout foo.vy``). Unless it is overriden, the compiler will allocate it at slot ``0``. +You can view where the nonreentrant key is physically laid out in storage by using ``vyper`` with the ``-f layout`` option (e.g., ``vyper -f layout foo.vy``). Unless it is overridden, the compiler will allocate it at slot ``0``. .. note:: A mutable function can protect a ``view`` function from being called back into (which is useful for instance, if a ``view`` function would return inconsistent state during a mutable function), but a ``view`` function cannot protect itself from being called back into. Note that mutable functions can never be called from a ``view`` function because all external calls out from a ``view`` function are protected by the use of the ``STATICCALL`` opcode. diff --git a/tests/functional/syntax/test_nested_list.py b/tests/functional/syntax/test_nested_list.py index dbc411b495..32552077f2 100644 --- a/tests/functional/syntax/test_nested_list.py +++ b/tests/functional/syntax/test_nested_list.py @@ -75,5 +75,5 @@ def foo(): @pytest.mark.parametrize("good_code", valid_list) -def test_nested_list_sucess(good_code): +def test_nested_list_success(good_code): assert compiler.compile_code(good_code) is not None diff --git a/vyper/codegen/expr.py b/vyper/codegen/expr.py index edd932d58e..276f261fc8 100644 --- a/vyper/codegen/expr.py +++ b/vyper/codegen/expr.py @@ -494,7 +494,7 @@ def build_in_comparator(self): return IRnode.from_list(b1.resolve(b2.resolve(ret)), typ=BoolT()) @staticmethod - def _signed_to_unsigned_comparision_op(op): + def _signed_to_unsigned_comparison_op(op): translation_map = {"sgt": "gt", "sge": "ge", "sle": "le", "slt": "lt"} if op in translation_map: return translation_map[op] @@ -554,7 +554,7 @@ def parse_Compare(self): if left.typ == right.typ and right.typ == UINT256_T: # signed comparison ops work for any integer # type BESIDES uint256 - op = self._signed_to_unsigned_comparision_op(op) + op = self._signed_to_unsigned_comparison_op(op) elif left.typ._is_prim_word and right.typ._is_prim_word: if op not in ("eq", "ne"):