]> Cypherpunks repositories - gostls13.git/commitdiff
text/template,html/template: correct comment in DefinedTemplates
authorRob Pike <r@golang.org>
Tue, 24 Nov 2015 18:17:59 +0000 (10:17 -0800)
committerRob Pike <r@golang.org>
Tue, 24 Nov 2015 21:52:36 +0000 (21:52 +0000)
The prefix includes a semicolon.

Change-Id: I4bdb79aa9931e835e297f3ea2c46a001cd123d56
Reviewed-on: https://go-review.googlesource.com/17200
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/html/template/template.go
src/text/template/exec.go

index 22d103026b100124713e850dd57ec1e326330319..96ab268a7f44b5eed2d30ac75d8d2de12ea91144 100644 (file)
@@ -144,7 +144,7 @@ func (t *Template) lookupAndEscapeTemplate(name string) (tmpl *Template, err err
 }
 
 // DefinedTemplates returns a string listing the defined templates,
-// prefixed by the string "defined templates are: ". If there are none,
+// prefixed by the string "defined templates are: ". If there are none,
 // it returns the empty string. Used to generate an error message.
 func (t *Template) DefinedTemplates() string {
        return t.text.DefinedTemplates()
index f45cbb212f3d57f45d73e434d1296f9e2b2cf30a..efe1817173f5883d5979cc2682c78cf1a45b726b 100644 (file)
@@ -180,7 +180,7 @@ func (t *Template) Execute(wr io.Writer, data interface{}) (err error) {
 }
 
 // DefinedTemplates returns a string listing the defined templates,
-// prefixed by the string "defined templates are: ". If there are none,
+// prefixed by the string "defined templates are: ". If there are none,
 // it returns the empty string. For generating an error message here
 // and in html/template.
 func (t *Template) DefinedTemplates() string {