Skip to content

Commit

Permalink
Merge pull request #2258 from ATREAY/docs
Browse files Browse the repository at this point in the history
Substituted the letter `z` with `x` in pre-declaration
  • Loading branch information
0xalpharush authored Dec 8, 2023
2 parents deebe36 + ff0e85d commit 40536d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/variables/predeclaration_usage_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PredeclarationUsageLocal(AbstractDetector):
```solidity
contract C {
function f(uint z) public returns (uint) {
uint y = x + 9 + z; // 'z' is used pre-declaration
uint y = x + 9 + z; // 'x' is used pre-declaration
uint x = 7;
if (z % 2 == 0) {
Expand Down

0 comments on commit 40536d8

Please sign in to comment.