go/src/html/template
Brad Fitzpatrick 3813edf26e all: use "reports whether" consistently in the few places that didn't
Go documentation style for boolean funcs is to say:

    // Foo reports whether ...
    func Foo() bool

(rather than "returns true if")

This CL also replaces 4 uses of "iff" with the same "reports whether"
wording, which doesn't lose any meaning, and will prevent people from
sending typo fixes when they don't realize it's "if and only if". In
the past I think we've had the typo CLs updated to just say "reports
whether". So do them all at once.

(Inspired by the addition of another "returns true if" in CL 146938
in fd_plan9.go)

Created with:

$ perl -i -npe 's/returns true if/reports whether/' $(git grep -l "returns true iff" | grep -v vendor)
$ perl -i -npe 's/returns true if/reports whether/' $(git grep -l "returns true if" | grep -v vendor)

Change-Id: Ided502237f5ab0d25cb625dbab12529c361a8b9f
Reviewed-on: https://go-review.googlesource.com/c/147037
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-11-02 22:47:58 +00:00
..
attr.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
attr_string.go all: add more uses of stringer 2018-02-19 21:33:14 +00:00
clone_test.go text/template: copy Decl field when copying PipeNode 2018-04-10 14:26:58 +00:00
content.go html/template: ignore untyped nil arguments to default escapers 2018-07-09 21:54:35 +00:00
content_test.go html/template: ignore untyped nil arguments to default escapers 2018-07-09 21:54:35 +00:00
context.go html/template: use named consts instead of their values 2018-08-22 22:48:10 +00:00
css.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
css_test.go
delim_string.go html/template: make more use of stringer 2018-02-20 15:44:01 +00:00
doc.go html/template: ignore untyped nil arguments to default escapers 2018-07-09 21:54:35 +00:00
element_string.go html/template: make more use of stringer 2018-02-20 15:44:01 +00:00
error.go html/template: allow safe usage of predefined escapers in pipelines 2017-05-05 18:56:31 +00:00
escape.go text/template/parse: undo breaking API changes 2018-06-22 08:05:11 +00:00
escape_test.go html/template: ignore untyped nil arguments to default escapers 2018-07-09 21:54:35 +00:00
example_test.go html/template: add an example for the Delims method 2018-08-30 19:36:15 +00:00
examplefiles_test.go
html.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
html_test.go
js.go all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
js_test.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
jsctx_string.go html/template: make more use of stringer 2018-02-20 15:44:01 +00:00
state_string.go html/template: make more use of stringer 2018-02-20 15:44:01 +00:00
template.go Revert "html/template: prevent aliasing of parse Trees via AddParseTree" 2018-01-09 21:05:20 +00:00
template_test.go html/template, text/template: docs and fixes for template redefinition 2016-10-24 15:43:24 +00:00
transition.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
transition_test.go
url.go all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
url_test.go html/template: add srcset content type 2017-12-14 19:54:38 +00:00
urlpart_string.go html/template: make more use of stringer 2018-02-20 15:44:01 +00:00