]> Cypherpunks repositories - gostls13.git/commit
doc/go1.18: minor tweaks to generics section
authorAustin Clements <austin@google.com>
Mon, 6 Dec 2021 18:33:54 +0000 (13:33 -0500)
committerAustin Clements <austin@google.com>
Mon, 6 Dec 2021 19:50:32 +0000 (19:50 +0000)
commit9ecb853cf2252f3cd9ed2e7b3401d17df2d1ab06
tree86b854eae30ffdd0a09ee20d3e18ba59a50c1cec
parent765cc726b64044a55fb37d10a8bec1c153b06be5
doc/go1.18: minor tweaks to generics section

This CL reorders the bullet points in the generics section to more
closely match what I think users will consider most important. I put
the ~ token before the mention of ~T in interfaces to avoid a forward
reference, though I wonder if we actually want to spent a couple more
sentences saying what union and ~T types are, since most people are
going to care about that a lot more than they care about the low-level
detail that there's a new token.

For #47694.

Change-Id: Ib84f096ef6346a711801268ce362b64fa423d3f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/369734
Trust: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html