mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: be more idiomatic when documenting boolean return values.
Phrases like "returns whether or not the image is opaque" could be describing what the function does (it always returns, regardless of the opacity) or what it returns (a boolean indicating the opacity). Even when the "or not" is missing, the phrasing is bizarre. Go with "reports whether", which is still clunky but at least makes it clear we're talking about the return value. These were edited by hand. A few were cleaned up in other ways. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/11699043
This commit is contained in:
parent
7d9a8fb8a9
commit
abe384f68a
45 changed files with 92 additions and 92 deletions
|
|
@ -183,7 +183,7 @@ type Request struct {
|
|||
TLS *tls.ConnectionState
|
||||
}
|
||||
|
||||
// ProtoAtLeast returns whether the HTTP protocol used
|
||||
// ProtoAtLeast reports whether the HTTP protocol used
|
||||
// in the request is at least major.minor.
|
||||
func (r *Request) ProtoAtLeast(major, minor int) bool {
|
||||
return r.ProtoMajor > major ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue