mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated "correct code" block logic to match the "problematic code" block. One was indexing from 0 and the other from 1.
@@ -12,7 +12,7 @@ done
|
||||
### Correct code:
|
||||
|
||||
```bash
|
||||
for ((i=0; i<n; i++))
|
||||
for ((i=1; i <= n; i++))
|
||||
do
|
||||
echo "$i"
|
||||
done
|
||||
|
Reference in New Issue
Block a user