From: Alan Donovan Date: Wed, 3 Jan 2024 16:21:49 +0000 (-0500) Subject: doc/go1.22: add links to go/types symbols X-Git-Tag: go1.22rc2~8^2~13 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aa0a6ad1db9ea2e338e755720c91e1b10376c4de;p=gostls13.git doc/go1.22: add links to go/types symbols Also, join three paragraphs that should have been one. Change-Id: Ib1c252f88a1e98afe157d477caa5323c0c8365e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/553715 LUCI-TryBot-Result: Go LUCI Reviewed-by: Eli Bendersky --- diff --git a/doc/go1.22.html b/doc/go1.22.html index 96c092f853..44d783e1bd 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -577,18 +577,17 @@ We plan to include an API migration tool in a future release, likely Go 1.23. Importer, Package, NewPackage. -

-

- Identifiers cannot be accurately resolved without type information. + + In general, identifiers cannot be accurately resolved without type information. Consider, for example, the identifier K in T{K: ""}: it could be the name of a local variable if T is a map type, or the name of a field if T is a struct type. -

-

+ New programs should use the go/types - package to resolve identifiers; - see Object, Info.Uses, - and Info.Defs for details. + package to resolve identifiers; see + Object, + Info.Uses, and + Info.Defs for details.