From: Rob Pike Date: Thu, 15 Aug 2013 03:15:55 +0000 (+1000) Subject: go_spec.html: clarify that tags are part of struct type identity X-Git-Tag: go1.2rc2~558 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=15e6ce23519cd57d5177a31e1fe533d210126630;p=gostls13.git 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 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index b13ed7dd68..ba7b3644d9 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1017,6 +1017,7 @@ A field declaration may be followed by an optional string literal tag, which becomes an attribute for all the fields in the corresponding field declaration. The tags are made visible through a reflection interface +and take part in type identity for structs but are otherwise ignored.

@@ -2692,7 +2693,7 @@ and the result of the slice operation is a slice with the same element type as t

If the sliced operand of a valid slice expression is a nil slice, the result is a nil slice. -

+

Type assertions