Skip to content

Commit 39effbc

Browse files
cuishuanggopherbot
authored andcommitted
all: fix function names in comments
Change-Id: I915eff34fcfe82f3514254f7d8998baa88a91da6 Reviewed-on: https://go-review.googlesource.com/c/go/+/501997 Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: shuang cui <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 19b814b commit 39effbc

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/cmd/cgo/gcc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ func (c *typeConv) badVoidPointerTypedef(dt *dwarf.TypedefType) bool {
33253325
return false
33263326
}
33273327

3328-
// badStructPointerTypedef is like badVoidPointerTypedefs but for structs.
3328+
// badStructPointerTypedef is like badVoidPointerTypedef but for structs.
33293329
func (c *typeConv) badStructPointerTypedef(name string, dt *dwarf.StructType) bool {
33303330
// Windows handle types can all potentially contain non-pointers.
33313331
// badVoidPointerTypedef handles the "void *" HANDLE type, but other

src/cmd/link/internal/loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ func (l *Loader) SetAttrCgoExportDynamic(i Sym, v bool) {
10361036
}
10371037
}
10381038

1039-
// ForAllAttrCgoExportDynamic calls f for every symbol that has been
1039+
// ForAllCgoExportDynamic calls f for every symbol that has been
10401040
// marked with the "cgo_export_dynamic" compiler directive.
10411041
func (l *Loader) ForAllCgoExportDynamic(f func(Sym)) {
10421042
for s := range l.attrCgoExportDynamic {

src/crypto/x509/sec1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier
6767
})
6868
}
6969

70-
// marshalECPrivateKeyWithOID marshals an EC private key into ASN.1, DER format
70+
// marshalECDHPrivateKey marshals an EC private key into ASN.1, DER format
7171
// suitable for NIST curves.
7272
func marshalECDHPrivateKey(key *ecdh.PrivateKey) ([]byte, error) {
7373
return asn1.Marshal(ecPrivateKey{

src/go/printer/printer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ func (p *printer) intersperseComments(next token.Position, tok token.Token) (wro
813813
return
814814
}
815815

816-
// whiteWhitespace writes the first n whitespace entries.
816+
// writeWhitespace writes the first n whitespace entries.
817817
func (p *printer) writeWhitespace(n int) {
818818
// write entries
819819
for i := 0; i < n; i++ {

src/internal/godebug/godebug.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func setUpdate(update func(string, string))
180180
//go:linkname registerMetric
181181
func registerMetric(name string, read func() uint64)
182182

183-
// setNewNonDefaultInc is provided by package runtime.
183+
// setNewIncNonDefault is provided by package runtime.
184184
// The runtime can do
185185
//
186186
// inc := newNonDefaultInc(name)
@@ -285,5 +285,6 @@ func (*runtimeStderr) Write(b []byte) (int, error) {
285285

286286
// Since we cannot import os or syscall, use the runtime's write function
287287
// to print to standard error.
288+
//
288289
//go:linkname write runtime.write
289290
func write(fd uintptr, p unsafe.Pointer, n int32) int32

0 commit comments

Comments
 (0)