From 7a5f1e0c9d30749c325d61f1c9771ba4f1a68750 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 9 Aug 2024 15:33:56 -0500 Subject: feat: complete functions and variables --- exercises/functions/functions2/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'exercises/functions/functions2/main.go') diff --git a/exercises/functions/functions2/main.go b/exercises/functions/functions2/main.go index a8ab96e..39915b5 100644 --- a/exercises/functions/functions2/main.go +++ b/exercises/functions/functions2/main.go @@ -1,7 +1,6 @@ // functions2 // Make me compile! -// I AM NOT DONE package main import "fmt" @@ -10,7 +9,7 @@ func main() { callMe(10) } -func callMe(num) { +func callMe(num int) { for n := 0; n <= num; n++ { fmt.Printf("Num is %d\n", n) } -- cgit v1.2.3-70-g09d2