diff --git a/lesson-templates/lesson-06-arrays.tm b/lesson-templates/lesson-06-arrays.tm index 4d0af6e..9ecba23 100644 --- a/lesson-templates/lesson-06-arrays.tm +++ b/lesson-templates/lesson-06-arrays.tm @@ -15,7 +15,7 @@ func main(): empty := [:Int] >> empty - = [] + = [:Int] # You can loop over an array with `for value in array`: sum := 0 diff --git a/lesson-templates/lesson-08-tables.tm b/lesson-templates/lesson-08-tables.tm index 4c3a783..c350e4b 100644 --- a/lesson-templates/lesson-08-tables.tm +++ b/lesson-templates/lesson-08-tables.tm @@ -19,7 +19,7 @@ func main(): # Tables can be empty but must have key and value types: empty := {:Text,Int} >> empty - = {} + = {:Text,Int} # You can loop over tables: total := 0