]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.22: add links to go/types symbols
authorAlan Donovan <adonovan@google.com>
Wed, 3 Jan 2024 16:21:49 +0000 (11:21 -0500)
committerAlan Donovan <adonovan@google.com>
Wed, 3 Jan 2024 17:21:42 +0000 (17:21 +0000)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
doc/go1.22.html

index 96c092f853bdb118eef4801f4ba2eb109815dad4..44d783e1bd621023c5c6c45e6c398acab885b255 100644 (file)
@@ -577,18 +577,17 @@ We plan to include an API migration tool in a future release, likely Go 1.23.
       <code>Importer</code>,
       <code>Package</code>,
       <code>NewPackage</code>.
-    </p>
-    <p>
-      Identifiers cannot be accurately resolved without type information.
+
+      In general, identifiers cannot be accurately resolved without type information.
       Consider, for example, the identifier <code>K</code>
       in <code>T{K: ""}</code>: 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.
-    </p>
-    <p>
+
       New programs should use the <a href='/pkg/go/types'>go/types</a>
-      package to resolve identifiers;
-      see <code>Object</code>, <code>Info.Uses</code>,
-      and <code>Info.Defs</code> for details.
+      package to resolve identifiers; see
+      <a href='https://pkg.go.dev/go/types#Object'><code>Object</code></a>,
+      <a href='https://pkg.go.dev/go/types#Info.Uses'><code>Info.Uses</code></a>, and
+      <a href='https://pkg.go.dev/go/types#Info.Defs'><code>Info.Defs</code></a> for details.
     </p>
 
     <p><!-- https://go.dev/issue/60061 -->