]> Cypherpunks repositories - gostls13.git/commitdiff
internal: fix a few function names on comments
authorcui fliter <imcusg@gmail.com>
Fri, 30 Sep 2022 09:19:02 +0000 (09:19 +0000)
committerKeith Randall <khr@google.com>
Fri, 30 Sep 2022 16:39:12 +0000 (16:39 +0000)
Change-Id: I53169e386b8c789b092de348fa891fe50e11c2ef
GitHub-Last-Rev: 75232393b4ba415bddc731f15550d7094ccfd953
GitHub-Pull-Request: golang/go#55965
Reviewed-on: https://go-review.googlesource.com/c/go/+/436883
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/internal/coverage/pkid.go
src/internal/fuzz/coverage.go
src/internal/fuzz/encoding.go
src/internal/poll/errno_windows.go
src/internal/profile/filter.go

index 2b4ac2ee562ed3632f4d71820b2cbd267c0e2990..8ddd44d6bbc08ec77666dc356ea11902b6eaf4e0 100644 (file)
@@ -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 {
index 88f98a16b2e299b09f99dc4c089786419949a5ae..0d96be2f7a2fd789a157867f1b58abc503d7f66a 100644 (file)
@@ -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()
index c2eed7045e7b392cd18298b4c410da76ffb4fdf5..270ef7a1a3a887aab53c1e20ad8f92884e3aeed7 100644 (file)
@@ -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":
index 3679aa8c4c795b69df890dee58df38696af0b2b3..63814793fda8c3465a3f8c5ee3db74a81a267d4f 100644 (file)
@@ -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 {
index 9cad866df8c7f90560706c59fa3540182077af65..65e50db99d5fda5b98605211616b1b768692a85a 100644 (file)
@@ -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