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
9c3d876d
Commit
9c3d876d
authored
Jan 30, 2012
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/spec: Update language on map types.
Fixes #2803. R=r CC=golang-dev
https://golang.org/cl/5601053
parent
91cb3489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
go_spec.html
doc/go_spec.html
+3
-2
No files found.
doc/go_spec.html
View file @
9c3d876d
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of January
21
, 2012"
"Subtitle": "Version of January
30
, 2012"
}-->
<!--
...
...
@@ -1150,7 +1150,8 @@ KeyType = Type .
<p>
The comparison operators
<code>
==
</code>
and
<code>
!=
</code>
(§
<a
href=
"#Comparison_operators"
>
Comparison operators
</a>
) must be fully defined
for operands of the key type; thus the key type must not be a struct, array or slice.
for operands of the key type; thus the key type must not be a function, map, or
slice.
If the key type is an interface type, these
comparison operators must be defined for the dynamic key values;
failure will cause a
<a
href=
"#Run_time_panics"
>
run-time panic
</a>
.
...
...
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