Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6513e195
Commit
6513e195
authored
Feb 03, 2012
by
Christopher Wedgwood
Committed by
Rob Pike
Feb 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: correct primes
R=r CC=golang-dev
https://golang.org/cl/5627048
parent
c6c00ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
go_spec.html
doc/go_spec.html
+1
-1
No files found.
doc/go_spec.html
View file @
6513e195
...
...
@@ -2143,7 +2143,7 @@ Examples of valid array, slice, and map literals:
<pre>
// list of prime numbers
primes := []int{2, 3, 5, 7, 9, 11, 13, 17, 19, 991, 11742505398034153904407024118311376271094
3
9}
primes := []int{2, 3, 5, 7, 9, 11, 13, 17, 19, 991, 11742505398034153904407024118311376271094
7
9}
// vowels[ch] is true if ch is a vowel
vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment