Fix comment on rand example.

Example shows methods being called on r1 (type Rand) not s1 (type Source).  Fix comment to reflect this correctly.
This commit is contained in:
Steve Krulewitz 2015-02-21 17:36:18 -08:00
parent 6494e4478b
commit 725207847e

View File

@ -30,7 +30,7 @@ func main() {
s1 := rand.NewSource(42)
r1 := rand.New(s1)
// Call the resulting `rand.Source` just like the
// Call the resulting `rand.Rand` just like the
// functions on the `rand` package.
fmt.Print(r1.Intn(100), ",")
fmt.Print(r1.Intn(100))