Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
text/template,html/template: correct comment in DefinedTemplates
Browse files Browse the repository at this point in the history
The prefix includes a semicolon.

Change-Id: I4bdb79aa9931e835e297f3ea2c46a001cd123d56
Reviewed-on: https://go-review.googlesource.com/17200
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
robpike committed Nov 24, 2015
1 parent 7a1fb95 commit d0351e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/html/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/text/template/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0351e9

Please sign in to comment.