Commit b07ebd0711 for golang

commit b07ebd0711d48fa548393229c4fa1744558105b6
Author: cuishuang <imcusg@gmail.com>
Date:   Wed Nov 25 08:35:00 2026 +0800

    all: clarify interface method comments and fix documentation typos

    Clarify interface method behavior and return values, fix coverage
    visitor comment typos, and correct the variable name in the HTTP/2
    configuration example.

    Change-Id: Ie6b8f6868248efea1a1442c53d1581d0b010679b
    Reviewed-on: https://go-review.googlesource.com/c/go/+/866148
    Reviewed-by: Keith Randall <khr@golang.org>
    Auto-Submit: Keith Randall <khr@golang.org>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Keith Randall <khr@google.com>
    LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

diff --git a/src/cmd/compile/internal/ssa/config.go b/src/cmd/compile/internal/ssa/config.go
index 151e55638f..613f18671b 100644
--- a/src/cmd/compile/internal/ssa/config.go
+++ b/src/cmd/compile/internal/ssa/config.go
@@ -101,7 +101,7 @@ type Logger interface {
 	// Warnl writes compiler messages in the form expected by "errorcheck" tests
 	Warnl(pos src.XPos, fmt_ string, args ...any)

-	// Forwards the Debug flags from gc
+	// Debug_checknil reports whether nil-check debugging is enabled.
 	Debug_checknil() bool
 }

diff --git a/src/cmd/internal/cov/readcovdata.go b/src/cmd/internal/cov/readcovdata.go
index f9fd522930..f5dd7f9461 100644
--- a/src/cmd/internal/cov/readcovdata.go
+++ b/src/cmd/internal/cov/readcovdata.go
@@ -84,8 +84,8 @@ func MakeCovDataReader(vis CovDataVisitor, indirs []string, verbosityLevel int,

 type CovDataVisitor interface {
 	// Invoked at the start and end of a given pod (a pod here is a
-	// specific coverage meta-data files with the counter data files
-	// that correspond to it).
+	// specific coverage meta-data file together with its corresponding
+	// counter data files).
 	BeginPod(p pods.Pod)
 	EndPod(p pods.Pod)

@@ -113,7 +113,7 @@ type CovDataVisitor interface {
 	BeginPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32)
 	EndPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32)

-	// Invoked for each function  the package being visited.
+	// VisitFunc is invoked for each function in the package being visited.
 	VisitFunc(pkgIdx uint32, fnIdx uint32, fd *coverage.FuncDesc)

 	// Invoked when all counter + meta-data file processing is complete.
diff --git a/src/cmd/internal/objfile/objfile.go b/src/cmd/internal/objfile/objfile.go
index eae4c9945a..7f6db07060 100644
--- a/src/cmd/internal/objfile/objfile.go
+++ b/src/cmd/internal/objfile/objfile.go
@@ -53,6 +53,8 @@ type Reloc struct {
 }

 type RelocStringer interface {
+	// String returns a textual description of the relocation.
+	//
 	// insnOffset is the offset of the instruction containing the relocation
 	// from the start of the symbol containing the relocation.
 	String(insnOffset uint64) string
diff --git a/src/debug/dwarf/buf.go b/src/debug/dwarf/buf.go
index 7e4ba4a9d2..5ba0d6b6de 100644
--- a/src/debug/dwarf/buf.go
+++ b/src/debug/dwarf/buf.go
@@ -29,7 +29,8 @@ type dataFormat interface {
 	// DWARF version number. Zero means unknown.
 	version() int

-	// 64-bit DWARF format?
+	// dwarf64 reports whether the DWARF format is 64-bit.
+	// The second result reports whether the format is known.
 	dwarf64() (dwarf64 bool, isKnown bool)

 	// Size of an address, in bytes. Zero means unknown.
diff --git a/src/net/http/http2client.go b/src/net/http/http2client.go
index f374f9ec0a..a0562c5281 100644
--- a/src/net/http/http2client.go
+++ b/src/net/http/http2client.go
@@ -31,7 +31,7 @@ type http2Transport = http2.Transport
 // setting configuration settings on the x/net Transport:
 //
 //	tr1 := &http.Transport{}
-//	tr2 := http2.ConfigureTransports(t1)
+//	tr2 := http2.ConfigureTransports(tr1)
 //
 //	// This setting needs to affect tr1:
 //	tr2.MaxHeaderListSize = 10000