]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix a few function names on comments
authorcui fliter <imcusg@gmail.com>
Thu, 3 Nov 2022 03:46:23 +0000 (03:46 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 3 Nov 2022 15:17:11 +0000 (15:17 +0000)
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>

src/go/printer/printer.go
src/image/format.go

index 7f96c226dc352335eaa466d85d849fec53dd6070..741e3f782c1492f66285dbcf5cbea103d9e97324 100644 (file)
@@ -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:
index a53b8f9b554882dbc9413f49117296414b42c34f..51d7ad902143214b877b71a991d0e53bdf5528bd 100644 (file)
@@ -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 {