mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
go_spec: primality is elusive
This time for sure. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5634046
This commit is contained in:
parent
0d07600de3
commit
fc06cadd88
@ -1,6 +1,6 @@
|
|||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of January 30, 2012"
|
"Subtitle": "Version of February 6, 2012"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -2143,7 +2143,7 @@ Examples of valid array, slice, and map literals:
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
// list of prime numbers
|
// list of prime numbers
|
||||||
primes := []int{2, 3, 5, 7, 9, 11, 13, 17, 19, 991, 1174250539803415390440702411831137627109479}
|
primes := []int{2, 3, 5, 7, 9, 2147483647}
|
||||||
|
|
||||||
// vowels[ch] is true if ch is a vowel
|
// vowels[ch] is true if ch is a vowel
|
||||||
vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}
|
vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}
|
||||||
|
Loading…
Reference in New Issue
Block a user