Skip to content

Commit

Permalink
all: fix function names in comments
Browse files Browse the repository at this point in the history
Change-Id: I871a747b4b47bccc889f2fdc93a2bcebb041b719
Reviewed-on: https://go-review.googlesource.com/c/go/+/447895
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Nov 4, 2022
1 parent d9cc39b commit a749850
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/debug/plan9obj/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/net/addrselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/net/http/httputil/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/os/file_plan9.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/reflect/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/text/template/parse/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$".
Expand Down

0 comments on commit a749850

Please sign in to comment.