From b1a1d7f425f5e7120b3c9d4e2965cc4614ee9d5b Mon Sep 17 00:00:00 2001 From: fangguizhen <1297394526@qq.com> Date: Mon, 16 Jan 2023 16:51:02 +0000 Subject: [PATCH] cmd/go: fix comment typo Change-Id: I2a5cfdac31c7ffad36348f76f0e583fbf1b11d95 GitHub-Last-Rev: 8373113fe9c5f0ecadcc7c5004b0450ba7983977 GitHub-Pull-Request: golang/go#57821 Reviewed-on: https://go-review.googlesource.com/c/go/+/462048 Run-TryBot: Ian Lance Taylor Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/cmd/go/internal/modindex/read.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/internal/modindex/read.go b/src/cmd/go/internal/modindex/read.go index 7c4fa7a6eec..c83000c4a1c 100644 --- a/src/cmd/go/internal/modindex/read.go +++ b/src/cmd/go/internal/modindex/read.go @@ -819,7 +819,7 @@ func (m *Module) Package(path string) *IndexPackage { return m.pkg(i) } -// pkgAt returns the i'th IndexPackage in m. +// pkg returns the i'th IndexPackage in m. func (m *Module) pkg(i int) *IndexPackage { r := m.d.readAt(m.pkgOff(i)) p := new(IndexPackage) @@ -966,7 +966,7 @@ func (d *decoder) boolAt(off int) bool { return d.intAt(off) != 0 } -// stringTableAt returns the string pointed at by the int at the given offset in d.data. +// stringAt returns the string pointed at by the int at the given offset in d.data. func (d *decoder) stringAt(off int) string { return d.stringTableAt(d.intAt(off)) }