1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:50:23 -07:00

doc: remove non-prime from list of primes in spec

Fixes golang/go#24451

Change-Id: Id9b4cbd1a1ff032f1cc4606e9734ddcc64892ae5
Reviewed-on: https://go-review.googlesource.com/101457
Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
Andrew Bonventre 2018-03-19 14:15:13 -04:00 committed by Filippo Valsorda
parent 168cc7ff9c
commit 4b06d9d727

View File

@ -2494,7 +2494,7 @@ Examples of valid array, slice, and map literals:
<pre>
// list of prime numbers
primes := []int{2, 3, 5, 7, 9, 2147483647}
primes := []int{2, 3, 5, 7, 2147483647}
// vowels[ch] is true if ch is a vowel
vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}