aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/functions/functions2
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-08-09 15:33:56 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-08-09 15:33:56 -0500
commit7a5f1e0c9d30749c325d61f1c9771ba4f1a68750 (patch)
treef3458e7a150e9b38618594e5bd89891f1cf6b5fe /exercises/functions/functions2
parentb3890a15b255760865f1601779ed280e3737e935 (diff)
feat: complete functions and variablesHEADmain
Diffstat (limited to 'exercises/functions/functions2')
-rw-r--r--exercises/functions/functions2/main.go3
1 files changed, 1 insertions, 2 deletions
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)
}