From bc9dc8d415fc1ecf8d0d63a01dd17b2b60bf4cf3 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Mon, 3 Jul 2023 13:41:45 +0800 Subject: [PATCH] all: fix function names Change-Id: Iba8878420c59d705066d1d9955e91a5c2eb4faf5 Reviewed-on: https://go-review.googlesource.com/c/go/+/507615 Reviewed-by: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/internal/coverage/decodemeta/decodefile.go | 2 +- src/net/conf.go | 2 +- src/time/zoneinfo_read.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/coverage/decodemeta/decodefile.go b/src/internal/coverage/decodemeta/decodefile.go index 6580dd54022811..96e076596f8bf5 100644 --- a/src/internal/coverage/decodemeta/decodefile.go +++ b/src/internal/coverage/decodemeta/decodefile.go @@ -147,7 +147,7 @@ func (r *CoverageMetaFileReader) CounterMode() coverage.CounterMode { return r.hdr.CMode } -// CounterMode returns the counter granularity (single counter per +// CounterGranularity returns the counter granularity (single counter per // function, or counter per block) selected when building for coverage // for the program that produce this meta-data file. func (r *CoverageMetaFileReader) CounterGranularity() coverage.CounterGranularity { diff --git a/src/net/conf.go b/src/net/conf.go index 99717dbf8ca8ec..649ebcfb18ad6f 100644 --- a/src/net/conf.go +++ b/src/net/conf.go @@ -151,7 +151,7 @@ func initConfVal() { } } -// goosPreferCgo reports whether the GOOS value passed in prefers +// goosPrefersCgo reports whether the GOOS value passed in prefers // the cgo resolver. func goosPrefersCgo() bool { switch runtime.GOOS { diff --git a/src/time/zoneinfo_read.go b/src/time/zoneinfo_read.go index 4d0e47d890ac30..707dd1189d03d7 100644 --- a/src/time/zoneinfo_read.go +++ b/src/time/zoneinfo_read.go @@ -90,7 +90,7 @@ func (d *dataIO) byte() (n byte, ok bool) { return p[0], true } -// read returns the read of the data in the buffer. +// rest returns the rest of the data in the buffer. func (d *dataIO) rest() []byte { r := d.p d.p = nil