html: adjust parameter format in unescapeEntity

This commit is contained in:
1911860538 2024-10-21 22:43:11 +08:00
parent 3c093b5332
commit 9b29a1a92e
1 changed files with 1 additions and 1 deletions

View File

@ -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