diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-09 15:33:56 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-09 15:33:56 -0500 |
commit | 7a5f1e0c9d30749c325d61f1c9771ba4f1a68750 (patch) | |
tree | f3458e7a150e9b38618594e5bd89891f1cf6b5fe /exercises/functions/functions4/main.go | |
parent | b3890a15b255760865f1601779ed280e3737e935 (diff) |
Diffstat (limited to 'exercises/functions/functions4/main.go')
-rw-r--r-- | exercises/functions/functions4/main.go | 3 |
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 } |