]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix function names in comments
authorcui fliter <imcusg@gmail.com>
Fri, 9 Jun 2023 02:08:27 +0000 (10:08 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 9 Jun 2023 04:07:29 +0000 (04:07 +0000)
Change-Id: I915eff34fcfe82f3514254f7d8998baa88a91da6
Reviewed-on: https://go-review.googlesource.com/c/go/+/501997
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/cmd/cgo/gcc.go
src/cmd/link/internal/loader/loader.go
src/crypto/x509/sec1.go
src/go/printer/printer.go
src/internal/godebug/godebug.go

index 5f7c6fbbe630c95e5c9c721692f31d2105bd87b7..7ae6fbcc48ef66b26342fb8038c06a5c37394a3b 100644 (file)
@@ -3325,7 +3325,7 @@ func (c *typeConv) badVoidPointerTypedef(dt *dwarf.TypedefType) bool {
        return false
 }
 
-// badStructPointerTypedef is like badVoidPointerTypedefs but for structs.
+// badStructPointerTypedef is like badVoidPointerTypedef but for structs.
 func (c *typeConv) badStructPointerTypedef(name string, dt *dwarf.StructType) bool {
        // Windows handle types can all potentially contain non-pointers.
        // badVoidPointerTypedef handles the "void *" HANDLE type, but other
index f4b075b07708c6408b85fc8dc6e842f3a7065f92..49199bdd69b9e967decc06b821b4c4f5d2a5f317 100644 (file)
@@ -1036,7 +1036,7 @@ func (l *Loader) SetAttrCgoExportDynamic(i Sym, v bool) {
        }
 }
 
-// ForAllAttrCgoExportDynamic calls f for every symbol that has been
+// ForAllCgoExportDynamic calls f for every symbol that has been
 // marked with the "cgo_export_dynamic" compiler directive.
 func (l *Loader) ForAllCgoExportDynamic(f func(Sym)) {
        for s := range l.attrCgoExportDynamic {
index 027c17c43c592d695965d13b5688d13c2d4292f7..6bfba0d93f383e3ead3f6e811d787c677984dfdb 100644 (file)
@@ -67,7 +67,7 @@ func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier
        })
 }
 
-// marshalECPrivateKeyWithOID marshals an EC private key into ASN.1, DER format
+// marshalECDHPrivateKey marshals an EC private key into ASN.1, DER format
 // suitable for NIST curves.
 func marshalECDHPrivateKey(key *ecdh.PrivateKey) ([]byte, error) {
        return asn1.Marshal(ecPrivateKey{
index 46131c66971829106cb0e13083fca14690f23ac3..5cf4e4bb5fc25e910716a8ceb39f1b3bb098f62d 100644 (file)
@@ -813,7 +813,7 @@ func (p *printer) intersperseComments(next token.Position, tok token.Token) (wro
        return
 }
 
-// whiteWhitespace writes the first n whitespace entries.
+// writeWhitespace writes the first n whitespace entries.
 func (p *printer) writeWhitespace(n int) {
        // write entries
        for i := 0; i < n; i++ {
index 22645a4c8124c349a2064a2b9fbc889db8b7b8a7..36bfeaccc421464556d7cb945a22bc7fe1083116 100644 (file)
@@ -180,7 +180,7 @@ func setUpdate(update func(string, string))
 //go:linkname registerMetric
 func registerMetric(name string, read func() uint64)
 
-// setNewNonDefaultInc is provided by package runtime.
+// setNewIncNonDefault is provided by package runtime.
 // The runtime can do
 //
 //     inc := newNonDefaultInc(name)
@@ -285,5 +285,6 @@ func (*runtimeStderr) Write(b []byte) (int, error) {
 
 // Since we cannot import os or syscall, use the runtime's write function
 // to print to standard error.
+//
 //go:linkname write runtime.write
 func write(fd uintptr, p unsafe.Pointer, n int32) int32