mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-01 12:34:28 +00:00
11 lines
135 B
Go
11 lines
135 B
Go
|
package intmath
|
||
|
|
||
|
// Min returns the smaller of the two passed numbers.
|
||
|
func Min(a, b int) int {
|
||
|
if a < b {
|
||
|
return a
|
||
|
}
|
||
|
|
||
|
return b
|
||
|
}
|