mirror of
https://github.com/golang/go.git
synced 2025-05-18 13:54:40 +00:00
all: fix a few function names on comments
Change-Id: Ida7e756f01a2c115ac58bf10aa13b2f8fd57b6a1 GitHub-Last-Rev: 4694d397bd3ad488fd05ed2cc6ad97909f09e707 GitHub-Pull-Request: golang/go#56537 Reviewed-on: https://go-review.googlesource.com/c/go/+/447436 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
582a6c2db4
commit
1bfb51f8f7
@ -1040,7 +1040,7 @@ func (p *printer) flush(next token.Position, tok token.Token) (wroteNewline, dro
|
||||
return
|
||||
}
|
||||
|
||||
// getNode returns the ast.CommentGroup associated with n, if any.
|
||||
// getDoc returns the ast.CommentGroup associated with n, if any.
|
||||
func getDoc(n ast.Node) *ast.CommentGroup {
|
||||
switch n := n.(type) {
|
||||
case *ast.Field:
|
||||
|
@ -55,7 +55,7 @@ func asReader(r io.Reader) reader {
|
||||
return bufio.NewReader(r)
|
||||
}
|
||||
|
||||
// Match reports whether magic matches b. Magic may contain "?" wildcards.
|
||||
// match reports whether magic matches b. Magic may contain "?" wildcards.
|
||||
func match(magic string, b []byte) bool {
|
||||
if len(magic) != len(b) {
|
||||
return false
|
||||
@ -68,7 +68,7 @@ func match(magic string, b []byte) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Sniff determines the format of r's data.
|
||||
// sniff determines the format of r's data.
|
||||
func sniff(r reader) format {
|
||||
formats, _ := atomicFormats.Load().([]format)
|
||||
for _, f := range formats {
|
||||
|
Loading…
x
Reference in New Issue
Block a user