Skip to content

Commit 58b1296

Browse files
author
Harsh
committed
Fixing for snippet issue.
1 parent 5cb4a0c commit 58b1296

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "hars",
44
"displayName": "C/C++ Snippets",
55
"description": "Code snippets for C/C++",
6-
"version": "0.0.4",
6+
"version": "0.0.5",
77
"engines": {
88
"vscode": "^0.10.1"
99
},

snippets/c.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"for": {
33
"prefix": "for",
44
"body": [
5-
"for (${size_t} ${i} = ${1:0}, ${i} < ${length}, ${i}++)",
5+
"for (${size_t} ${i} = ${1:0}; ${i} < ${length}; ${i}++)",
66
"{",
77
" $2",
88
"}"
@@ -12,7 +12,7 @@
1212
"forr": {
1313
"prefix": "forr",
1414
"body": [
15-
"for (int ${i} = ${length} - 1, ${i} >= 0, ${i}--)",
15+
"for (int ${i} = ${length} - 1; ${i} >= 0; ${i}--)",
1616
"{",
1717
" $1",
1818
"}"

snippets/cpp.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"for": {
33
"prefix": "for",
44
"body": [
5-
"for (${size_t} ${i} = ${1:0}, ${i} < ${length}, ${i}++)",
5+
"for (${size_t} ${i} = ${1:0}; ${i} < ${length}; ${i}++)",
66
"{",
77
" $2",
88
"}"
@@ -12,7 +12,7 @@
1212
"forr": {
1313
"prefix": "forr",
1414
"body": [
15-
"for (int ${i} = ${length} - 1, ${i} >= 0, ${i}--)",
15+
"for (int ${i} = ${length} - 1; ${i} >= 0; ${i}--)",
1616
"{",
1717
" $1",
1818
"}"

0 commit comments

Comments
 (0)