Skip to content

Commit

Permalink
Update structdelete.json
Browse files Browse the repository at this point in the history
Correct expected results for the examples
  • Loading branch information
pczarn2 authored Jan 28, 2025
1 parent 332c0af commit c18ac22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/en/structdelete.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"title": "Remove a key from a struct",
"description": "Creates a struct then removes a key",
"code": "someStruct = {a=1,b=2};\nstructDelete(someStruct, \"a\");\n\nwriteDump(someStruct);",
"result": "true",
"result": "Struct with one key-value pair: B 2",
"runnable": true
},
{
"title": "Remove a key from a struct using the member function",
"description": "CF11+ Lucee4.5+ Invoking the delete function on a struct is the same as running structDelete.",
"code": "someStruct = {a=1, b=2};\nsomeStruct.delete('a');\n\nwriteDump(someStruct);",
"result": "true",
"result": "Struct with one key-value pair: B 2",
"runnable": true
}
]
Expand Down

0 comments on commit c18ac22

Please sign in to comment.