Skip to content

Commit

Permalink
internal: fix function names in comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cuishuang authored and gopherbot committed Apr 16, 2024
1 parent 01f1ac0 commit 598fefa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/core/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion internal/gocore/gocore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 598fefa

Please sign in to comment.