]> Cypherpunks repositories - gostls13.git/commit
math/rand/v2: replace <= 0 with == 0 for Uint function docs
authorJorropo <jorropo.pgm@gmail.com>
Wed, 4 Dec 2024 12:07:08 +0000 (13:07 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 4 Dec 2024 16:34:07 +0000 (16:34 +0000)
commit4c3aa5d32436486dce4927d240ebf596c0bbb8aa
treef359de2af81e28285614a24bce622baa2f210765
parentccf4ebbb6176d7c35edc1b03d274a8d6fb1630bc
math/rand/v2: replace <= 0 with == 0 for Uint function docs

This harmonize the docs with (*Rand).Uint* functions.
And it make it clearer, I wasn't sure if it would try to interpret
the uint as a signed number somehow, it does not pull any surprises
make that clear.

Change-Id: I5a87a0a5563dbabfc31e536e40ee69b11f5cb6cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/633535
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/math/rand/v2/rand.go