]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "doc: remove non-prime from list of primes in spec"
authorAndrew Bonventre <andybons@golang.org>
Mon, 19 Mar 2018 21:50:42 +0000 (21:50 +0000)
committerAndrew Bonventre <andybons@golang.org>
Mon, 19 Mar 2018 21:51:23 +0000 (21:51 +0000)
This reverts commit 4b06d9d72747b0407e2cd9a423b689c7e9c8e92d.

Reason for revert: It's a reference to a legendary article
from the Journal of Irreproducible Results.

Updates golang/go#24451

Change-Id: I0288177f4e286bd6ace5774f2e5e0acb02370305
Reviewed-on: https://go-review.googlesource.com/101495
Reviewed-by: Andrew Bonventre <andybons@golang.org>
doc/go_spec.html

index 14b5f352d69aed600ce8065ebe6fc18694af1c7f..dbd2307e29aec848cad6ee5669b90d77144b6525 100644 (file)
@@ -2494,7 +2494,7 @@ Examples of valid array, slice, and map literals:
 
 <pre>
 // list of prime numbers
-primes := []int{2, 3, 5, 7, 2147483647}
+primes := []int{2, 3, 5, 7, 9, 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}