mirror of https://github.com/golang/go.git
html: adjust parameter format in unescapeEntity
This commit is contained in:
parent
3c093b5332
commit
9b29a1a92e
|
|
@ -53,7 +53,7 @@ var replacementTable = [...]rune{
|
|||
// unescapeEntity reads an entity like "<" from b[src:] and writes the
|
||||
// corresponding "<" to b[dst:], returning the incremented dst and src cursors.
|
||||
// Precondition: b[src] == '&' && dst <= src.
|
||||
func unescapeEntity(b []byte, dst int, src int, entity map[string]rune, entity2 map[string][2]rune) (dst1, src1 int) {
|
||||
func unescapeEntity(b []byte, dst, src int, entity map[string]rune, entity2 map[string][2]rune) (dst1, src1 int) {
|
||||
const attribute = false
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume-a-character-reference
|
||||
|
|
|
|||
Loading…
Reference in New Issue