Skip to content

Commit

Permalink
docs: tiny word choice suggestion for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Oct 11, 2020
1 parent 4cbfa90 commit 3b00289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weightedrand.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (chs Chooser) Pick() interface{} {
// high-throughput situations.
//
// It is the responsibility of the caller to ensure the provided rand.Source is
// safe from thread safety issues.
// free from thread safety issues.
func (chs Chooser) PickSource(rs *rand.Rand) interface{} {
r := rs.Intn(chs.max) + 1
i := searchInts(chs.totals, r)
Expand Down

0 comments on commit 3b00289

Please sign in to comment.