]> Cypherpunks repositories - gostls13.git/commitdiff
html/template: fix one more lint naming error
authorSamuel Tan <samueltan@google.com>
Fri, 30 Mar 2018 00:50:46 +0000 (17:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 30 Mar 2018 23:57:47 +0000 (23:57 +0000)
Change-Id: I629d89d5065271f3b92dde8b12f0e743c9bde8f0
Reviewed-on: https://go-review.googlesource.com/103595
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/html/template/url.go

index 669600ef9ad8239e36cfe9d043dcfb93eba08ae8..a5c775c94e2af1d4bc639c27a60327bfcc3688b7 100644 (file)
@@ -181,7 +181,7 @@ func isHTMLSpace(c byte) bool {
        return (c <= 0x20) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7)))
 }
 
-func isHTMLSpaceOrAsciiAlnum(c byte) bool {
+func isHTMLSpaceOrASCIIAlnum(c byte) bool {
        return (c < 0x80) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7)))
 }
 
@@ -202,7 +202,7 @@ func filterSrcsetElement(s string, left int, right int, b *bytes.Buffer) {
                // we don't need to URL normalize it.
                metadataOk := true
                for i := end; i < right; i++ {
-                       if !isHTMLSpaceOrAsciiAlnum(s[i]) {
+                       if !isHTMLSpaceOrASCIIAlnum(s[i]) {
                                metadataOk = false
                                break
                        }