mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
all: use "reports whether" in godoc comments
Go documentation style for boolean funcs is to say:
// Foo reports whether ...
func Foo() bool
rather than "returns true if" or "returns whether".
Change-Id: I5d01c45a8867b47462ed142a49ad51bf0a319ce1
Reviewed-on: https://go-review.googlesource.com/c/151957
Reviewed-by: Elias Naur <elias.naur@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
a27dd33d35
commit
ca3c58166e
+1
-1
@@ -372,7 +372,7 @@ func (g *JavaGen) javadoc(doc string) {
|
||||
g.Printf("/**\n * %s */\n", html.EscapeString(doc))
|
||||
}
|
||||
|
||||
// hasThis returns whether a method has an implicit "this" parameter.
|
||||
// hasThis reports whether a method has an implicit "this" parameter.
|
||||
func (g *JavaGen) hasThis(sName string, m *types.Func) bool {
|
||||
sig := m.Type().(*types.Signature)
|
||||
params := sig.Params()
|
||||
|
||||
Reference in New Issue
Block a user