diff --git a/doc/go1.22.html b/doc/go1.22.html index 96c092f853b..44d783e1bd6 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.