mirror of
https://github.com/golang/go
synced 2024-11-18 09:24:54 -07:00
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>
This commit is contained in:
parent
6734452554
commit
55732ad839
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user