From bbb4fbf6a2dc2c4287ec9f5bb1ae042dc92bd88f Mon Sep 17 00:00:00 2001 From: Uri Bar Date: Wed, 6 Sep 2023 18:21:08 +0300 Subject: [PATCH] array, not object --- examples/todo-app/main.w | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/todo-app/main.w b/examples/todo-app/main.w index 44da8f7..9491eb8 100644 --- a/examples/todo-app/main.w +++ b/examples/todo-app/main.w @@ -58,12 +58,12 @@ let convertStatusEnumToStr = inflight (s: Status): str => { // Util method to convert Task array to JSON let convertTaskArrayToJson = inflight (taskArray: Array): Json => { - let jsonArray = MutJson {}; + let jsonArray = MutJson []; let var i = 0; for task in taskArray { let j = Json task; jsonArray.setAt(i, j); - i = i + 1; + i += 1; } return jsonArray; };