Skip to content

Commit c13e0e8

Browse files
committed
spec: remove example explaining that type B0 and B0 are identical
Every few months we get a new error report claiming that there is a typo in the spec related to this specific example. Clearly, the fact that two types with the same identifier are identical seems exceedingly obvious to readers; thus the example seems not worth the trouble. Removing it. For #9226. For #22202. For #22495. For #23096. For #23409. There may be more. Change-Id: I003ba79dc460ffb028a4ecb5f29efd60f2551912 Reviewed-on: https://go-review.googlesource.com/87417 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Rob Pike <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent fe49d10 commit c13e0e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/go_spec.html

Lines changed: 2 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 January 9, 2018",
3+
"Subtitle": "Version of January 11, 2018",
44
"Path": "/ref/spec"
55
}-->
66

@@ -1495,7 +1495,7 @@ <h3 id="Type_identity">Type identity</h3>
14951495
A3 and int
14961496
A4, func(int, float64) *[]string, and A5
14971497

1498-
B0, B0, and C0
1498+
B0 and C0
14991499
[]int and []int
15001500
struct{ a, b *T5 } and struct{ a, b *T5 }
15011501
func(x int, y float64) *[]string, func(int, float64) (result *[]string), and A5

0 commit comments

Comments
 (0)