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
63f54ae3
Commit
63f54ae3
authored
Jul 11, 2013
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: move decl in example closer to use
Fixes #5862. R=r CC=golang-dev
https://golang.org/cl/11168043
parent
4a4d4832
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go_spec.html
doc/go_spec.html
+2
-2
No files found.
doc/go_spec.html
View file @
63f54ae3
<!--{
<!--{
"Title": "The Go Programming Language Specification",
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of July
9
, 2013",
"Subtitle": "Version of July
11
, 2013",
"Path": "/ref/spec"
"Path": "/ref/spec"
}-->
}-->
...
@@ -4664,7 +4664,6 @@ for i, _ := range testdata.a {
...
@@ -4664,7 +4664,6 @@ for i, _ := range testdata.a {
}
}
var a [10]string
var a [10]string
m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6}
for i, s := range a {
for i, s := range a {
// type of i is int
// type of i is int
// type of s is string
// type of s is string
...
@@ -4674,6 +4673,7 @@ for i, s := range a {
...
@@ -4674,6 +4673,7 @@ for i, s := range a {
var key string
var key string
var val interface {} // value type of m is assignable to val
var val interface {} // value type of m is assignable to val
m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6}
for key, val = range m {
for key, val = range m {
h(key, val)
h(key, val)
}
}
...
...
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