Skip to content

Commit dff37e8

Browse files
committed
util: export function
1 parent 93ca6ab commit dff37e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package util
22

3-
func abs(x int) int {
3+
// Abs calculates the absolute value of an integer
4+
func Abs(x int) int {
45
if x > 0 {
56
return -x
67
}

0 commit comments

Comments
 (0)