Skip to content

Commit 15e6ce2

Browse files
committed
go_spec.html: clarify that tags are part of struct type identity
One sentence says they're ignored, another says they take part. Fix the first. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/12741046
1 parent c7a64cc commit 15e6ce2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/go_spec.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version of July 31, 2013",
3+
"Subtitle": "Version of Aug 15, 2013",
44
"Path": "/ref/spec"
55
}-->
66

@@ -1017,6 +1017,7 @@ <h3 id="Struct_types">Struct types</h3>
10171017
which becomes an attribute for all the fields in the corresponding
10181018
field declaration. The tags are made
10191019
visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a>
1020+
and take part in <a href="Type_identity">type identity</a> for structs
10201021
but are otherwise ignored.
10211022
</p>
10221023

@@ -2692,7 +2693,7 @@ <h3 id="Slices">Slices</h3>
26922693
<p>
26932694
If the sliced operand of a valid slice expression is a <code>nil</code> slice, the result
26942695
is a <code>nil</code> slice.
2695-
<p>
2696+
</p>
26962697

26972698
<h3 id="Type_assertions">Type assertions</h3>
26982699

0 commit comments

Comments
 (0)