Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clheikes committed Feb 8, 2024
1 parent 63e2e89 commit 44a4eac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Package addition provides a function for adding two integers
package addition

// Add takes two integers and adds them together.
//
// It has two parameters: both parameters are integers, Add returns the sum of the
// two integer parameters
// [Addition](https://www.mathsisfun.com/numbers/addition.html)
func Add(a, b int) int {
return a + b
}

0 comments on commit 44a4eac

Please sign in to comment.