1
0
mirror of https://github.com/golang/go synced 2024-09-25 13:30:12 -06:00
go/src/html
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
..
template all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
entity_test.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
entity.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape_test.go html: speed up UnescapeString 2015-08-22 12:45:38 +00:00
escape.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
example_test.go html: add examples to the functions 2015-06-19 05:15:22 +00:00