Skip to content

Commit bc9dc8d

Browse files
cuishuanggopherbot
authored andcommitted
all: fix function names
Change-Id: Iba8878420c59d705066d1d9955e91a5c2eb4faf5 Reviewed-on: https://go-review.googlesource.com/c/go/+/507615 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent dd491cf commit bc9dc8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/internal/coverage/decodemeta/decodefile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (r *CoverageMetaFileReader) CounterMode() coverage.CounterMode {
147147
return r.hdr.CMode
148148
}
149149

150-
// CounterMode returns the counter granularity (single counter per
150+
// CounterGranularity returns the counter granularity (single counter per
151151
// function, or counter per block) selected when building for coverage
152152
// for the program that produce this meta-data file.
153153
func (r *CoverageMetaFileReader) CounterGranularity() coverage.CounterGranularity {

src/net/conf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func initConfVal() {
151151
}
152152
}
153153

154-
// goosPreferCgo reports whether the GOOS value passed in prefers
154+
// goosPrefersCgo reports whether the GOOS value passed in prefers
155155
// the cgo resolver.
156156
func goosPrefersCgo() bool {
157157
switch runtime.GOOS {

src/time/zoneinfo_read.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (d *dataIO) byte() (n byte, ok bool) {
9090
return p[0], true
9191
}
9292

93-
// read returns the read of the data in the buffer.
93+
// rest returns the rest of the data in the buffer.
9494
func (d *dataIO) rest() []byte {
9595
r := d.p
9696
d.p = nil

0 commit comments

Comments
 (0)