1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-13 08:55:12 +00:00
arikawa/internal/intmath/math.go

11 lines
135 B
Go
Raw Normal View History

2020-12-27 00:08:41 +00:00
package intmath
// Min returns the smaller of the two passed numbers.
func Min(a, b int) int {
if a < b {
return a
}
return b
}