diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-02-17 15:44:42 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2015-03-18 15:14:06 +0000 |
commit | 2adc4e892704bb99f2d16c0c09777987cb6bed35 (patch) | |
tree | 4e61f69a0e448b82df4e1c7c8c621f397298e7b9 /src/go/parser/parser.go | |
parent | fcb895feef1c9214f9cb633b5a0fa4dc8f46af9e (diff) | |
download | go-git-2adc4e892704bb99f2d16c0c09777987cb6bed35.tar.gz |
all: use "reports whether" in place of "returns true if(f)"
Comment changes only.
Change-Id: I56848814564c4aa0988b451df18bebdfc88d6d94
Reviewed-on: https://go-review.googlesource.com/7721
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/go/parser/parser.go')
-rw-r--r-- | src/go/parser/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/parser/parser.go b/src/go/parser/parser.go index d1b766cfbb..f2df9a76d1 100644 --- a/src/go/parser/parser.go +++ b/src/go/parser/parser.go @@ -1365,7 +1365,7 @@ func (p *parser) checkExpr(x ast.Expr) ast.Expr { return x } -// isTypeName returns true iff x is a (qualified) TypeName. +// isTypeName reports whether x is a (qualified) TypeName. func isTypeName(x ast.Expr) bool { switch t := x.(type) { case *ast.BadExpr: @@ -1379,7 +1379,7 @@ func isTypeName(x ast.Expr) bool { return true } -// isLiteralType returns true iff x is a legal composite literal type. +// isLiteralType reports whether x is a legal composite literal type. func isLiteralType(x ast.Expr) bool { switch t := x.(type) { case *ast.BadExpr: |