mirror of
https://github.com/golang/go
synced 2024-11-27 01:11:20 -07:00
fix a few function names on comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
fb4f7fdb26
commit
4694d397bd
@ -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…
Reference in New Issue
Block a user