Permalink
Browse files

Updates for snippet with normal for syntax

Before this patch the for loop would have been

for(i; i < count; count++) {
  #...
}

This increments the control variable which isn't the norm so I thought it would be better served as:

for(i=0; i < count; i++) {
  #...
}

Merges #147
  • Loading branch information...
1 parent 3883b17 commit 35cecbb27f1e3b2da6f69d1a0645656352f0c6ff @adkron adkron committed with ajzafar Mar 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/SnipMate.txt
View
@@ -250,7 +250,7 @@ the tab stop. This text then can be copied throughout the snippet using "$#",
given # is the same number as used before. So, to make a C for loop: >
snippet for
- for (${2:i}; $2 < ${1:count}; $1++) {
+ for (${2:i}=0; $2 < ${1:count}; $2++) {
${4}
}

0 comments on commit 35cecbb

Please sign in to comment.