mirror of
https://github.com/golang/go
synced 2024-11-12 10:00:25 -07:00
text/template,html/template: correct comment in DefinedTemplates
The prefix includes a semicolon. Change-Id: I4bdb79aa9931e835e297f3ea2c46a001cd123d56 Reviewed-on: https://go-review.googlesource.com/17200 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
7a1fb95d50
commit
d0351e9666
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user