mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
internal: fix a few function names on comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
d7dbe0111e
commit
75232393b4
|
@ -67,7 +67,7 @@ var rtPkgs = [...]string{
|
|||
// is not part of the runtime and doesn't require a hard-coded ID.
|
||||
const NotHardCoded = -1
|
||||
|
||||
// HardCodedPkgId returns the hard-coded ID for the specified package
|
||||
// HardCodedPkgID returns the hard-coded ID for the specified package
|
||||
// path, or -1 if we don't use a hard-coded ID. Hard-coded IDs start
|
||||
// at -2 and decrease as we go down the list.
|
||||
func HardCodedPkgID(pkgpath string) int {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"math/bits"
|
||||
)
|
||||
|
||||
// ResetCovereage sets all of the counters for each edge of the instrumented
|
||||
// ResetCoverage sets all of the counters for each edge of the instrumented
|
||||
// source code to 0.
|
||||
func ResetCoverage() {
|
||||
cov := coverage()
|
||||
|
|
|
@ -338,7 +338,7 @@ func parseInt(val, typ string) (any, error) {
|
|||
}
|
||||
}
|
||||
|
||||
// parseInt returns an unsigned integer of value val and type typ.
|
||||
// parseUint returns an unsigned integer of value val and type typ.
|
||||
func parseUint(val, typ string) (any, error) {
|
||||
switch typ {
|
||||
case "uint":
|
||||
|
|
|
@ -15,7 +15,7 @@ var (
|
|||
errERROR_IO_PENDING error = syscall.Errno(syscall.ERROR_IO_PENDING)
|
||||
)
|
||||
|
||||
// ErrnoErr returns common boxed Errno values, to prevent
|
||||
// errnoErr returns common boxed Errno values, to prevent
|
||||
// allocations at runtime.
|
||||
func errnoErr(e syscall.Errno) error {
|
||||
switch e {
|
||||
|
|
|
@ -130,7 +130,7 @@ func (p *Profile) FilterSamplesByTag(focus, ignore TagMatch) (fm, im bool) {
|
|||
return
|
||||
}
|
||||
|
||||
// focusedTag checks a sample against focus and ignore regexps.
|
||||
// focusedSample checks a sample against focus and ignore regexps.
|
||||
// Returns whether the focus/ignore regexps match any tags
|
||||
func focusedSample(s *Sample, focus, ignore TagMatch) (fm, im bool) {
|
||||
fm = focus == nil
|
||||
|
|
Loading…
Reference in a new issue