]> Cypherpunks.ru repositories - gostls13.git/commit
all: use "reports whether" consistently instead of "returns whether"
authorTobias Klauser <tklauser@distanz.ch>
Thu, 22 Nov 2018 10:46:44 +0000 (11:46 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Sun, 2 Dec 2018 15:12:26 +0000 (15:12 +0000)
commit9e277f7d554455e16ba3762541c53e9bfc1d8188
treea72e026004116edc63d3171d5d4e612ad299c265
parentb397248168fcb26400ac6afb88bf6080497a819e
all: use "reports whether" consistently instead of "returns whether"

Follow-up for CL 147037 and after Brad noticed the "returns whether"
pattern during the review of CL 150621.

Go documentation style for boolean funcs is to say:

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

(rather than "returns whether")

Created with:

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

Change-Id: I15fe9ff99180ad97750cd05a10eceafdb12dc0b4
Reviewed-on: https://go-review.googlesource.com/c/150918
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
51 files changed:
src/bytes/buffer.go
src/cmd/cgo/gcc.go
src/cmd/cgo/out.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/mips/ssa.go
src/cmd/compile/internal/mips64/ssa.go
src/cmd/compile/internal/ssa/biasedsparsemap.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/magic.go
src/cmd/compile/internal/ssa/numberlines.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/value.go
src/cmd/compile/internal/ssa/writebarrier.go
src/cmd/compile/internal/types/type.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/objabi/reloctype.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/pprof/readlineui.go
src/cmd/trace/annotations.go
src/crypto/tls/common.go
src/crypto/tls/handshake_server_tls13.go
src/crypto/x509/pkix/pkix.go
src/crypto/x509/verify.go
src/crypto/x509/x509.go
src/database/sql/sql.go
src/debug/dwarf/line.go
src/go/printer/nodes.go
src/internal/goroot/gc.go
src/internal/goroot/gccgo.go
src/net/http/cookie.go
src/net/http/h2_bundle.go
src/net/http/server.go
src/net/interface.go
src/os/wait_unimp.go
src/os/wait_wait6.go
src/os/wait_waitid.go
src/path/filepath/symlink_windows.go
src/runtime/cgocall.go
src/runtime/mbitmap.go
src/runtime/mgcmark.go
src/runtime/pprof/internal/profile/filter.go
src/runtime/proc.go
src/runtime/select.go
src/runtime/signal_unix.go
src/runtime/stubs.go
src/runtime/trace/annotation.go
src/runtime/traceback.go
src/runtime/vdso_linux.go
src/testing/benchmark.go
src/time/zoneinfo.go