Skip to content

Commit 8a9ac98

Browse files
committed
Update index.go
1 parent e2032d7 commit 8a9ac98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

min-cost-to-connect-all-points/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func 曼哈顿距离(a []int, b []int) int {
4646
return abs(a[0]-b[0]) + abs(a[1]-b[1])
4747
}
4848

49-
var abs = func(x int) int {
49+
func abs(x int) int {
5050
if x >= 0 {
5151
return x
5252
}

0 commit comments

Comments
 (0)