forked from cerc-io/ipld-eth-server
10 lines
122 B
Go
10 lines
122 B
Go
package math2
|
|
|
|
// IntMin returns the smaller of x or y.
|
|
func IntMin(x, y int) int {
|
|
if x < y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|