1
0
mirror of https://github.com/golang/go synced 2024-11-23 10:10:02 -07:00
go/src/sync
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
..
atomic sync/atomic: redirect many functions to runtime/internal/atomic 2018-05-03 21:35:01 +00:00
cond_test.go sync: hide test of misuse of Cond from vet 2018-04-25 02:49:46 +00:00
cond.go cmd/vet,sync: check lock values more precisely 2018-07-14 06:48:21 +00:00
example_pool_test.go
example_test.go
export_test.go
map_bench_test.go
map_reference_test.go
map_test.go
map.go sync: simplify (*entry).tryStore 2018-09-27 21:44:20 +00:00
mutex_test.go sync: throw, not panic, for unlock of unlocked mutex 2017-12-08 13:40:21 +00:00
mutex.go sync: throw, not panic, for unlock of unlocked mutex 2017-12-08 13:40:21 +00:00
once_test.go
once.go
pool_test.go
pool.go
runtime_sema_test.go
runtime.go all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
rwmutex_test.go
rwmutex.go sync: fix deficiency in RWMutex race annotations 2018-06-22 14:43:09 +00:00
waitgroup_test.go sync: deflake TestWaitGroupMisuse2 2018-05-14 04:42:45 +00:00
waitgroup.go sync: make WaitGroup more space-efficient 2018-03-15 09:56:25 +00:00