]> Cypherpunks repositories - gostls13.git/commit
math/rand: fix comment for Shuffle
authorBurak Guven <bguven@gmail.com>
Thu, 14 Sep 2017 02:54:40 +0000 (19:54 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 14 Sep 2017 03:41:35 +0000 (03:41 +0000)
commit9cc170f9a5b84d8cc3f477c68f6f2a2dc9196755
tree86af0a5a7e0ff4ec338231454f17781af162f2af
parent107744e94c4e62272962eba9195bc14a7eb69a09
math/rand: fix comment for Shuffle

Shuffle panics if n < 0, not n <= 0. The comment for the (*Rand).Shuffle
function is already accurate.

Change-Id: I073049310bca9632e50e9ca3ff79eec402122793
Reviewed-on: https://go-review.googlesource.com/63750
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/math/rand/rand.go