From 725207847e34bbf927a4d9867e1f7889616bfa7b Mon Sep 17 00:00:00 2001 From: Steve Krulewitz Date: Sat, 21 Feb 2015 17:36:18 -0800 Subject: [PATCH] Fix comment on rand example. Example shows methods being called on r1 (type Rand) not s1 (type Source). Fix comment to reflect this correctly. --- examples/random-numbers/random-numbers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/random-numbers/random-numbers.go b/examples/random-numbers/random-numbers.go index 01ea0fe..d12c72e 100644 --- a/examples/random-numbers/random-numbers.go +++ b/examples/random-numbers/random-numbers.go @@ -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))