From 598fefaade0fde7218b472be2473591c974ee74a Mon Sep 17 00:00:00 2001 From: cuishuang Date: Tue, 16 Apr 2024 17:46:34 +0800 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Reviewed-by: Ian Lance Taylor --- internal/core/process.go | 4 ++-- internal/gocore/gocore_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@ func addProgMappings(mem *splicedMemory, prog *elf.Prog, f *os.File) { // 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 @@ func findExe(mappings []namedMapping, entryPoint Address) string { 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 @@ import ( "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