Skip to content

Commit 30dcfb8

Browse files
committed
Error on loop syntax
1 parent b4c861e commit 30dcfb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/en/cfloop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
{
6464
"title": "Loop over a Struct (Script Syntax)",
6565
"description": "Struct Loop",
66-
"code": "myStruct = {name: \"Tony\", state: \"Florida\"}; \r\n // By struct \r\n for (currentKey in myStruct) { \r\n writeOutput(\"<li>#currentKey# : #myStruct[currentKey]#</li>\"); \r\n } \r\n // By structEach() \r\n myStruct.each(function(key, value) { \r\n writeOutput(\"<li>#key# : #value#</li>\"); \r\n }); \r\n // loop with index Lucee5+\nloop collection=myStruct index=\"key\" value=\"value\" {\n writeOutput(key & \" : \" & value);\n}",
66+
"code": "myStruct = {name: \"Tony\", state: \"Florida\"}; \r\n // By struct \r\n for (currentKey in myStruct) { \r\n writeOutput(\"<li>#currentKey# : #myStruct[currentKey]#</li>\"); \r\n } \r\n // By structEach() \r\n myStruct.each(function(key, value) { \r\n writeOutput(\"<li>#key# : #value#</li>\"); \r\n }); \r\n // loop with index Lucee5+\nloop collection=myStruct key=\"key\" value=\"value\" {\n writeOutput(key & \" : \" & value);\n}",
6767
"result": ""
6868
},
6969
{

0 commit comments

Comments
 (0)