Commit 55732ad8 authored by Samuel Tan's avatar Samuel Tan Committed by Ian Lance Taylor

html/template: fix one more lint naming error

Change-Id: I629d89d5065271f3b92dde8b12f0e743c9bde8f0
Reviewed-on: https://go-review.googlesource.com/103595Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 67344525
...@@ -181,7 +181,7 @@ func isHTMLSpace(c byte) bool { ...@@ -181,7 +181,7 @@ func isHTMLSpace(c byte) bool {
return (c <= 0x20) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7))) 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))) 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) { ...@@ -202,7 +202,7 @@ func filterSrcsetElement(s string, left int, right int, b *bytes.Buffer) {
// we don't need to URL normalize it. // we don't need to URL normalize it.
metadataOk := true metadataOk := true
for i := end; i < right; i++ { for i := end; i < right; i++ {
if !isHTMLSpaceOrAsciiAlnum(s[i]) { if !isHTMLSpaceOrASCIIAlnum(s[i]) {
metadataOk = false metadataOk = false
break break
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment