aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorDan Kortschak <dan@kortschak.io>2022-03-05 19:21:15 +1030
committerDaniel Martí <mvdan@mvdan.cc>2022-03-06 20:47:39 +0000
commitda2773fe3e2f6106634673a38dc3a6eb875fe7d8 (patch)
tree6de067c7651945133608c53635e371a88e698d60 /src/html
parent45f45444b307cea7c8330b100b30382e642e010f (diff)
downloadgo-da2773fe3e2f6106634673a38dc3a6eb875fe7d8.tar.xz
all: fix some typos
Change-Id: I7dfae0fc91c2d70873ec7ec920be7c0a4888153a Reviewed-on: https://go-review.googlesource.com/c/go/+/390175 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Trust: Daniel Martí <mvdan@mvdan.cc>
Diffstat (limited to 'src/html')
-rw-r--r--src/html/template/escape.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/template/escape.go b/src/html/template/escape.go
index 2b11526f52..2b4027348a 100644
--- a/src/html/template/escape.go
+++ b/src/html/template/escape.go
@@ -44,7 +44,7 @@ func escapeTemplate(tmpl *Template, node parse.Node, name string) error {
}
// evalArgs formats the list of arguments into a string. It is equivalent to
-// fmt.Sprint(args...), except that it deferences all pointers.
+// fmt.Sprint(args...), except that it dereferences all pointers.
func evalArgs(args ...any) string {
// Optimization for simple common case of a single string argument.
if len(args) == 1 {
@@ -690,7 +690,7 @@ func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context,
return c.eq(c1)
}
// We need to assume an output context so that recursive template calls
- // take the fast path out of escapeTree instead of infinitely recursing.
+ // take the fast path out of escapeTree instead of infinitely recurring.
// Naively assuming that the input context is the same as the output
// works >90% of the time.
e.output[t.Name()] = c