Skip to content

Commit

Permalink
Merge pull request #2453 from xiaoxianBoy/fix-typos
Browse files Browse the repository at this point in the history
chore: fix typos and link update
  • Loading branch information
0xalpharush authored May 5, 2024
2 parents ded705d + 0dca6a6 commit 4645ba5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion slither/tools/documentation/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# slither-documentation

`slither-documentation` uses [codex](https://beta.openai.com) to generate natspec documenation.
`slither-documentation` uses [codex](https://platform.openai.com) to generate natspec documenation.

This tool is experimental. See [solmate documentation](https://github.com/montyly/solmate/pull/1) for an example of usage.
4 changes: 2 additions & 2 deletions slither/visitors/expression/read_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def result(self) -> List[Expression]:
self._result = list(set(get(self.expression)))
return self._result

# overide assignement
# dont explore if its direct assignement (we explore if its +=, -=, ...)
# override assignment
# dont explore if its direct assignment (we explore if its +=, -=, ...)
def _visit_assignement_operation(self, expression: AssignmentOperation) -> None:
if expression.type != AssignmentOperationType.ASSIGN:
self._visit_expression(expression.expression_left)
Expand Down
2 changes: 1 addition & 1 deletion slither/visitors/slithir/expression_to_slithir.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _post_assignement_operation(self, expression: AssignmentOperation) -> None:
right = get(expression.expression_right)
operation: Operation
if isinstance(left, list): # tuple expression:
if isinstance(right, list): # unbox assigment
if isinstance(right, list): # unbox assignment
assert len(left) == len(right)
for idx, _ in enumerate(left):
if (
Expand Down
2 changes: 1 addition & 1 deletion slither/vyper_parsing/declarations/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _parse_contract_items(self) -> None:
self._structuresNotParsed.append(node)
elif isinstance(node, ImportFrom):
# TOOD aliases
# We create an `InterfaceDef` sense the compilatuion unit does not contain the actual interface
# We create an `InterfaceDef` sense the compilation unit does not contain the actual interface
# https://github.com/vyperlang/vyper/tree/master/vyper/builtins/interfaces
if node.module == "vyper.interfaces":
interfaces = {
Expand Down

0 comments on commit 4645ba5

Please sign in to comment.