]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix function names in comments
authorcui fliter <imcusg@gmail.com>
Fri, 4 Nov 2022 02:45:43 +0000 (10:45 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 4 Nov 2022 22:36:12 +0000 (22:36 +0000)
Change-Id: I871a747b4b47bccc889f2fdc93a2bcebb041b719
Reviewed-on: https://go-review.googlesource.com/c/go/+/447895
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>

src/debug/plan9obj/file.go
src/net/addrselect.go
src/net/http/httputil/dump.go
src/os/file_plan9.go
src/reflect/value.go
src/text/template/parse/lex.go

index 81ece2c3e0d6b411c81e76ebebb4896beef554b5..ad74c72eea3a5989838e502d236b72c93ad697d8 100644 (file)
@@ -260,7 +260,7 @@ func walksymtab(data []byte, ptrsz int, fn func(sym) error) error {
        return nil
 }
 
-// NewTable decodes the Go symbol table in data,
+// newTable decodes the Go symbol table in data,
 // returning an in-memory representation.
 func newTable(symtab []byte, ptrsz int) ([]Sym, error) {
        var n int
index b76183a34c42fe5b4ace7b6e3d260275dd6d293c..4f07032c4a01dbac7e13ff4e4a42ad164215eb20 100644 (file)
@@ -37,7 +37,7 @@ func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) {
        })
 }
 
-// srcsAddrs tries to UDP-connect to each address to see if it has a
+// srcAddrs tries to UDP-connect to each address to see if it has a
 // route. (This doesn't send any packets). The destination port
 // number is irrelevant.
 func srcAddrs(addrs []IPAddr) []netip.Addr {
index 6f5fa0d01d0d81f8dc74e0147d4f5bb8e50c2cb5..7affe5e61a90655c97c77d80196955bbd4454d68 100644 (file)
@@ -59,7 +59,7 @@ func (b neverEnding) Read(p []byte) (n int, err error) {
        return len(p), nil
 }
 
-// outGoingLength is a copy of the unexported
+// outgoingLength is a copy of the unexported
 // (*http.Request).outgoingLength method.
 func outgoingLength(req *http.Request) int64 {
        if req.Body == nil || req.Body == http.NoBody {
index 7a4a562783ee109c810fc5d17be0c95a4112d9a9..6e05df160ec44eb5f09c078ef5db69fa256c57f1 100644 (file)
@@ -381,7 +381,7 @@ func Remove(name string) error {
        return nil
 }
 
-// HasPrefix from the strings package.
+// hasPrefix from the strings package.
 func hasPrefix(s, prefix string) bool {
        return len(s) >= len(prefix) && s[0:len(prefix)] == prefix
 }
index 448ffa20589eed020551c63023c451e6efc89910..7fa45b62e9fc49a15656c79f3e30b1136c342a19 100644 (file)
@@ -3468,7 +3468,7 @@ func makeFloat(f flag, v float64, t Type) Value {
        return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
 }
 
-// makeFloat returns a Value of type t equal to v, where t is a float32 type.
+// makeFloat32 returns a Value of type t equal to v, where t is a float32 type.
 func makeFloat32(f flag, v float32, t Type) Value {
        typ := t.common()
        ptr := unsafe_New(typ)
index 3e60a1ecef5f397fcae78c88b6b1a9531142bb00..70fc86b63cccdc2deea9b1bc5dc7d8f523706f4f 100644 (file)
@@ -520,7 +520,7 @@ func lexVariable(l *lexer) stateFn {
        return lexFieldOrVariable(l, itemVariable)
 }
 
-// lexVariable scans a field or variable: [.$]Alphanumeric.
+// lexFieldOrVariable scans a field or variable: [.$]Alphanumeric.
 // The . or $ has been scanned.
 func lexFieldOrVariable(l *lexer, typ itemType) stateFn {
        if l.atTerminator() { // Nothing interesting follows -> "." or "$".