Skip to content

Commit 2ce53fc

Browse files
committed
Merge pull request #86 from rkeithhill/rkeithhill/for-snippet-bad-initvalue
Changed initial value of for loop indexer to 0 (from 1)
2 parents 5ef421e + 34567c5 commit 2ce53fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/PowerShell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
"for": {
647647
"prefix": "for",
648648
"body": [
649-
"for ($${variable:i} = 1; $${variable:i} -lt $${array}.Count; $${variable:i}++) {",
649+
"for ($${variable:i} = 0; $${variable:i} -lt $${array}.Count; $${variable:i}++) {",
650650
"\t$0",
651651
"}"
652652
],

0 commit comments

Comments
 (0)