From aa0a6ad1db9ea2e338e755720c91e1b10376c4de Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Wed, 3 Jan 2024 11:21:49 -0500 Subject: [PATCH] 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 --- doc/go1.22.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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.

-- 2.48.1