From 1bfb51f8f79acc13ff1c79576bf0a340d4d6706e Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 3 Nov 2022 03:46:23 +0000 Subject: [PATCH] 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 TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/go/printer/printer.go | 2 +- src/image/format.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/go/printer/printer.go b/src/go/printer/printer.go index 7f96c226dc..741e3f782c 100644 --- a/src/go/printer/printer.go +++ b/src/go/printer/printer.go @@ -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: diff --git a/src/image/format.go b/src/image/format.go index a53b8f9b55..51d7ad9021 100644 --- a/src/image/format.go +++ b/src/image/format.go @@ -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 { -- 2.50.0