Skip to content

Commit b1a1d7f

Browse files
lcr2000gopherbot
authored andcommitted
cmd/go: fix comment typo
Change-Id: I2a5cfdac31c7ffad36348f76f0e583fbf1b11d95 GitHub-Last-Rev: 8373113 GitHub-Pull-Request: #57821 Reviewed-on: https://go-review.googlesource.com/c/go/+/462048 Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent f89badf commit b1a1d7f

File tree

1 file changed

+2
-2
lines changed
  • src/cmd/go/internal/modindex

1 file changed

+2
-2
lines changed

src/cmd/go/internal/modindex/read.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ func (m *Module) Package(path string) *IndexPackage {
819819
return m.pkg(i)
820820
}
821821

822-
// pkgAt returns the i'th IndexPackage in m.
822+
// pkg returns the i'th IndexPackage in m.
823823
func (m *Module) pkg(i int) *IndexPackage {
824824
r := m.d.readAt(m.pkgOff(i))
825825
p := new(IndexPackage)
@@ -966,7 +966,7 @@ func (d *decoder) boolAt(off int) bool {
966966
return d.intAt(off) != 0
967967
}
968968

969-
// stringTableAt returns the string pointed at by the int at the given offset in d.data.
969+
// stringAt returns the string pointed at by the int at the given offset in d.data.
970970
func (d *decoder) stringAt(off int) string {
971971
return d.stringTableAt(d.intAt(off))
972972
}

0 commit comments

Comments
 (0)