fix some typo (#667)

This commit is contained in:
heyanfu
2021-05-04 21:33:08 +08:00
committed by GitHub
parent 9a44310d00
commit 97d889103a
5 changed files with 16 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ func (u Unstable) AroundDuration(base time.Duration) time.Duration {
return val
}
// AroundInt returns a randome int64 with given base and deviation.
// AroundInt returns a random int64 with given base and deviation.
func (u Unstable) AroundInt(base int64) int64 {
u.lock.Lock()
val := int64((1 + u.deviation - 2*u.deviation*u.r.Float64()) * float64(base))