Skip to content

Commit

Permalink
Merge pull request #801 from crytic/dev-uninitialized-doc
Browse files Browse the repository at this point in the history
Update uninitialized state variable doc
  • Loading branch information
montyly committed Mar 7, 2021
2 parents 1898673 + 9b2a810 commit 1817022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class UninitializedLocalVars(AbstractDetector):
```
Bob calls `transfer`. As a result, all Ether is sent to the address `0x0` and is lost."""

WIKI_RECOMMENDATION = "Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero."
WIKI_RECOMMENDATION = "Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability."

key = "UNINITIALIZEDLOCAL"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UninitializedStateVarsDetection(AbstractDetector):
Bob calls `transfer`. As a result, the Ether are sent to the address `0x0` and are lost.
"""
WIKI_RECOMMENDATION = """
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero.
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
"""

@staticmethod
Expand Down

0 comments on commit 1817022

Please sign in to comment.