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:
parent
6494e4478b
commit
725207847e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user