Skip to content

Commit 2182028

Browse files
bradfitzLukeShu
authored andcommitted
html: fix typo in UnescapeString string docs
Fixes #15221 Change-Id: I9e927a2f604213338b4572f1a32d0247c58bdc60 Reviewed-on: https://go-review.googlesource.com/21798 Reviewed-by: Ian Lance Taylor <[email protected]> Cherry-picked-from: golang/go@a44c425
1 parent 532ffb3 commit 2182028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/escape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func EscapeString(s string) string {
306306

307307
// UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a
308308
// larger range of entities than EscapeString escapes. For example, "&aacute;"
309-
// unescapes to "á", as does "&#225;" and "&xE1;".
309+
// unescapes to "á", as does "&#225;" and "&#xE1;".
310310
// UnescapeString(EscapeString(s)) == s always holds, but the converse isn't
311311
// always true.
312312
func UnescapeString(s string) string {

0 commit comments

Comments
 (0)