aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/coverage
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-03-01 22:43:22 +0800
committerGopher Robot <gobot@golang.org>2023-03-01 22:20:32 +0000
commitaf9f21289fff0c513df3a785c97d8ca35e1829b2 (patch)
treea6080d6fcdc51a065ace53445a84611dba2af026 /src/runtime/coverage
parent9f2fe2d721a10cd1066c52e22efc49a59a81b76d (diff)
downloadgo-af9f21289fff0c513df3a785c97d8ca35e1829b2.tar.xz
runtime: fix function name in comments
Change-Id: I18bb87bfdea8b6d7994091ced5134aa2549f221e Reviewed-on: https://go-review.googlesource.com/c/go/+/472476 Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/runtime/coverage')
-rw-r--r--src/runtime/coverage/emit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/coverage/emit.go b/src/runtime/coverage/emit.go
index 2aed99c718..300ff2caca 100644
--- a/src/runtime/coverage/emit.go
+++ b/src/runtime/coverage/emit.go
@@ -241,7 +241,7 @@ func prepareForMetaEmit() ([]rtcov.CovMetaBlob, error) {
return ml, nil
}
-// emitMetaData emits the meta-data output file to the specified
+// emitMetaDataToDirectory emits the meta-data output file to the specified
// directory, returning an error if something went wrong.
func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error {
ml, err := prepareForMetaEmit()
@@ -289,7 +289,7 @@ func emitCounterData() {
}
}
-// emitMetaData emits the counter-data output file for this coverage run.
+// emitCounterDataToDirectory emits the counter-data output file for this coverage run.
func emitCounterDataToDirectory(outdir string) error {
// Ask the runtime for the list of coverage counter symbols.
cl := getCovCounterList()
@@ -336,7 +336,7 @@ func emitCounterDataToDirectory(outdir string) error {
return nil
}
-// emitMetaData emits counter data for this coverage run to an io.Writer.
+// emitCounterDataToWriter emits counter data for this coverage run to an io.Writer.
func (s *emitState) emitCounterDataToWriter(w io.Writer) error {
if err := s.emitCounterDataFile(finalHash, w); err != nil {
return err