From b981e479f190dd32c90f6f1f37808b6ef9835c9b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 24 Mar 2025 22:35:27 -0400 Subject: [PATCH] Fixes --- koans.tm | 2 +- lesson-templates/lesson-06-arrays.tm | 2 +- lesson-templates/lesson-07-optionals.tm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koans.tm b/koans.tm index 556e6f3..95247e2 100644 --- a/koans.tm +++ b/koans.tm @@ -17,7 +17,7 @@ LESSONS := [ Lesson((./lessons/lesson-06-arrays.tm), "Arrays"), Lesson((./lessons/lesson-07-optionals.tm), "Optionals"), Lesson((./lessons/lesson-08-tables.tm), "Tables"), - Lesson((./lessons/lesson-09-text), "Text"), + Lesson((./lessons/lesson-09-text.tm), "Text"), Lesson((./lessons/lesson-10-structs.tm), "Structs"), Lesson((./lessons/lesson-11-enums.tm), "Enums"), Lesson((./lessons/lesson-12-allocating.tm), "Allocating Memory"), diff --git a/lesson-templates/lesson-06-arrays.tm b/lesson-templates/lesson-06-arrays.tm index dac19f1..4d0af6e 100644 --- a/lesson-templates/lesson-06-arrays.tm +++ b/lesson-templates/lesson-06-arrays.tm @@ -26,7 +26,7 @@ func main(): = ??? # Array comprehensions let you transform arrays concisely: - squares := [n + 1 for n in nums] + squares := [n*n for n in nums] >> squares = [???] diff --git a/lesson-templates/lesson-07-optionals.tm b/lesson-templates/lesson-07-optionals.tm index 371764a..e23c4a3 100644 --- a/lesson-templates/lesson-07-optionals.tm +++ b/lesson-templates/lesson-07-optionals.tm @@ -7,7 +7,7 @@ func main(): x := 42? >> x - = x + = 42 # You can assign a `none` value to `x` because it has type `Int?` x = none