aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorAndrew Bonventre <andybons@golang.org>2018-03-19 21:50:42 +0000
committerAndrew Bonventre <andybons@golang.org>2018-03-19 21:51:23 +0000
commit7974f0815e071448cd429d7c30c1d6c24b04a589 (patch)
tree631356a53abdfb84f59ff50890908f2fdaf44bc7 /doc/go_spec.html
parent26d74e8b65afeb856967cc264269cea9e1e7d2eb (diff)
downloadgo-7974f0815e071448cd429d7c30c1d6c24b04a589.tar.gz
go-7974f0815e071448cd429d7c30c1d6c24b04a589.zip
Revert "doc: remove non-prime from list of primes in spec"
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>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 14b5f352d6..dbd2307e29 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -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}