Skip to content

Commit ed8d368

Browse files
authored
fix: while snippet in cpp should end within the logical scope (#560)
1 parent fbf1a27 commit ed8d368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/cpp/cpp.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
},
3838
"while": {
3939
"prefix": "while",
40-
"body": ["while ($1) {", "\t$2", "}"],
41-
"description": ""
40+
"body": ["while ($1) {", "\t$0", "}"],
41+
"description": "'while' loop snippet"
4242
},
4343
"foreach": {
4444
"prefix": "foreach",

0 commit comments

Comments
 (0)