]> Cypherpunks repositories - gostls13.git/commit
text/template: remove an incorrect comment and clarify docs for AddParseTree
authorOliver Powell <oliverpowell84@gmail.com>
Sat, 5 Oct 2019 11:05:56 +0000 (13:05 +0200)
committerRob Pike <r@golang.org>
Tue, 17 Dec 2019 11:10:58 +0000 (11:10 +0000)
commitba4593ac47f4eaa22bd61f5e44e80eea6f965768
treeeeed3e9d5b73b8cc111a5dda2fcd2e08c24af465
parent001fe7f33f1d7aed9e3a047bd8e784bdc103c28c
text/template: remove an incorrect comment and clarify docs for AddParseTree

The comment "If the name is the name of this template, overwrite this template."
is incorrect and should be "is not" instead. This comment is no longer
required once the docs are updated to mention this behaviour instead.

Fixes #34695

Change-Id: I773495b2194d7bb7619b13c1a28cbc76e8f69aac
Reviewed-on: https://go-review.googlesource.com/c/go/+/199139
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/template.go