Skip to content

Commit 26660fc

Browse files
cuishuangromaindoumenc
authored andcommitted
all: fix a few function names on comments
Change-Id: Ida7e756f01a2c115ac58bf10aa13b2f8fd57b6a1 GitHub-Last-Rev: 4694d39 GitHub-Pull-Request: golang#56537 Reviewed-on: https://go-review.googlesource.com/c/go/+/447436 Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent efa413c commit 26660fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/go/printer/printer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ func (p *printer) flush(next token.Position, tok token.Token) (wroteNewline, dro
10401040
return
10411041
}
10421042

1043-
// getNode returns the ast.CommentGroup associated with n, if any.
1043+
// getDoc returns the ast.CommentGroup associated with n, if any.
10441044
func getDoc(n ast.Node) *ast.CommentGroup {
10451045
switch n := n.(type) {
10461046
case *ast.Field:

src/image/format.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func asReader(r io.Reader) reader {
5555
return bufio.NewReader(r)
5656
}
5757

58-
// Match reports whether magic matches b. Magic may contain "?" wildcards.
58+
// match reports whether magic matches b. Magic may contain "?" wildcards.
5959
func match(magic string, b []byte) bool {
6060
if len(magic) != len(b) {
6161
return false
@@ -68,7 +68,7 @@ func match(magic string, b []byte) bool {
6868
return true
6969
}
7070

71-
// Sniff determines the format of r's data.
71+
// sniff determines the format of r's data.
7272
func sniff(r reader) format {
7373
formats, _ := atomicFormats.Load().([]format)
7474
for _, f := range formats {

0 commit comments

Comments
 (0)