Skip to content

Commit

Permalink
fix a few function names on comments
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <[email protected]>
  • Loading branch information
cuishuang committed Nov 3, 2022
1 parent fb4f7fd commit 4694d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/go/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/image/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 4694d39

Please sign in to comment.