Substituted the letter 'z' with 'x' in pre-declaration

pull/2258/head
Atreay Kukanur 12 months ago
parent e3dcf1ecd3
commit ff0e85d2c1
  1. 2
      slither/detectors/variables/predeclaration_usage_local.py

@ -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) {

Loading…
Cancel
Save