aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorSamuel Tan <samueltan@google.com>2018-03-29 17:50:46 -0700
committerIan Lance Taylor <iant@golang.org>2018-03-30 23:57:47 +0000
commit55732ad839164e65af3088bffcf569fab07ae4b3 (patch)
tree3dcc8fc88df9403e96e486754dd709340b08e81f /src/html
parent6734452554f639c63055e8e233a6bc1d2076c3ed (diff)
downloadgo-55732ad839164e65af3088bffcf569fab07ae4b3.tar.gz
go-55732ad839164e65af3088bffcf569fab07ae4b3.zip
html/template: fix one more lint naming error
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>
Diffstat (limited to 'src/html')
-rw-r--r--src/html/template/url.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/template/url.go b/src/html/template/url.go
index 669600ef9a..a5c775c94e 100644
--- a/src/html/template/url.go
+++ b/src/html/template/url.go
@@ -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
}