Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 336 Bytes

range-val-address.md

File metadata and controls

11 lines (6 loc) · 336 Bytes

Pattern: Suspicious range variable assignment

Issue: -

Description

Range variables in a loop are reused at each iteration. This rule warns when assigning the address of the variable, passing the address to append() or using it in a map.

Further Reading