aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/functions/functions4/main.go
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/functions4/main.go
parentb3890a15b255760865f1601779ed280e3737e935 (diff)
feat: complete functions and variablesHEADmain
Diffstat (limited to 'exercises/functions/functions4/main.go')
-rw-r--r--exercises/functions/functions4/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/exercises/functions/functions4/main.go b/exercises/functions/functions4/main.go
index 2931b93..87ca90a 100644
--- a/exercises/functions/functions4/main.go
+++ b/exercises/functions/functions4/main.go
@@ -1,7 +1,6 @@
// functions4
// Make me compile!
-// I AM NOT DONE
package main
import "fmt"
@@ -10,6 +9,6 @@ func main() {
fmt.Println("1 + 2 is: ", addNumbers(1, 2)) // don't change this line
}
-func addNumbers(a int, b int) {
+func addNumbers(a int, b int) int {
return a + b
}