Commit 82fc28c0 authored by Robert Griesemer's avatar Robert Griesemer

go spec: fix inaccuracy in type identity definition

Pointed out by Steven Blenkinsop (steven099@gmail.com)
via golang-nuts.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5783087
parent 88190773
<!--{ <!--{
"Title": "The Go Programming Language Specification", "Title": "The Go Programming Language Specification",
"Subtitle": "Version of March 7, 2012", "Subtitle": "Version of March 12, 2012",
"Path": "/ref/spec" "Path": "/ref/spec"
}--> }-->
...@@ -1321,7 +1321,7 @@ Two types are either <i>identical</i> or <i>different</i>. ...@@ -1321,7 +1321,7 @@ Two types are either <i>identical</i> or <i>different</i>.
<p> <p>
Two named types are identical if their type names originate in the same Two named types are identical if their type names originate in the same
type <a href="#Declarations_and_scope">declaration</a>. <a href="#Type_declarations">TypeSpec</a>.
A named and an unnamed type are always different. Two unnamed types are identical A named and an unnamed type are always different. Two unnamed types are identical
if the corresponding type literals are identical, that is, if they have the same if the corresponding type literals are identical, that is, if they have the same
literal structure and corresponding components have identical types. In detail: literal structure and corresponding components have identical types. In detail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment