go/src/encoding
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
..
ascii85 encoding/ascii85: make bigtest big again 2017-06-23 14:28:30 +00:00
asn1 all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
base32 all: use strings.ReplaceAll and bytes.ReplaceAll where applicable 2018-09-26 22:14:25 +00:00
base64 encoding/base64: fix typo in decodeQuantum docs 2018-10-12 14:36:03 +00:00
binary encoding/binary: simplify Read and Write 2018-09-04 14:52:30 +00:00
csv encoding/csv: disallow quote for use as Comma 2018-03-09 00:33:43 +00:00
gob encoding/gob: delete out of memory test 2018-10-22 22:23:03 +00:00
hex encoding/hex: pre-allocate Dump buffer 2018-08-21 02:10:52 +00:00
json encoding/json: add example to Valid 2018-10-28 19:49:25 +00:00
pem encoding/pem: fix for TestFuzz, PEM type should not contain a colon 2018-09-03 15:04:25 +00:00
xml encoding/xml: document HTMLAutoClose and HTMLEntity more 2018-08-02 20:47:47 +00:00
encoding.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00