internal: fix function names in comment
Change-Id: I2756372ad39888d6f3e6c06ae16fa4938bf4f43d
Reviewed-on: https://go-review.googlesource.com/c/debug/+/579195
Reviewed-by: qiu laidongfeng2 <2645477756@qq.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
diff --git a/internal/core/process.go b/internal/core/process.go
index 4415493..7890be5 100644
--- a/internal/core/process.go
+++ b/internal/core/process.go
@@ -415,7 +415,7 @@
// appear in the ELF.
type noteMap map[elf.NType][][]byte
-// readNotes returns contents of all CORE ELF notes from the core file.
+// readCoreNotes returns contents of all CORE ELF notes from the core file.
func readCoreNotes(coreFile *os.File, coreElf *elf.File) (noteMap, error) {
notes := make(noteMap)
@@ -538,7 +538,7 @@
return ""
}
-// updateMappingsFiles adds os.File references to mappings in mem of files in
+// updateMappingFiles adds os.File references to mappings in mem of files in
// fileMappings.
//
// base is the base directory from which files in fileMappings can be found.
diff --git a/internal/gocore/gocore_test.go b/internal/gocore/gocore_test.go
index 559f487..7db04a6 100644
--- a/internal/gocore/gocore_test.go
+++ b/internal/gocore/gocore_test.go
@@ -24,7 +24,7 @@
"golang.org/x/debug/internal/testenv"
)
-// loadTest loads a simple core file which resulted from running the
+// loadExample loads a simple core file which resulted from running the
// following program on linux/amd64 with go 1.9.0 (the earliest supported runtime):
//
// package main