Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2110)

Issue 11699043: code review 11699043: all: be more idiomatic when documenting boolean return ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by r
Modified:
11 years, 8 months ago
Reviewers:
dsymonds
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

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.

Patch Set 1 #

Total comments: 5

Patch Set 2 : diff -r 677f1dc462af https://code.google.com/p/go/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -92 lines) Patch
M doc/play/life.go View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/plan9.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/unix.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/windows.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/export.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/subr.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/go/pkg.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/bufio/scan.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/bytes/bytes.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/ecdsa/ecdsa.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/x509/pkix/pkix.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/debug/gosym/symtab.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/encoding/asn1/asn1.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/encoding/gob/encode.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/encoding/json/tags.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/flag/flag.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/fmt/print.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/ast/ast.go View 1 chunk +3 lines, -3 lines 1 comment Download
M src/pkg/go/doc/testdata/testing.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/doc/testdata/testing.0.golden View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/go/doc/testdata/testing.1.golden View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/go/doc/testdata/testing.2.golden View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/html/template/context.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/html/template/css.go View 4 chunks +4 lines, -4 lines 1 comment Download
M src/pkg/html/template/escape.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/html/template/js.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/html/template/transition.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/image/format.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/image/geom.go View 3 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/image/image.go View 1 9 chunks +9 lines, -9 lines 0 comments Download
M src/pkg/image/jpeg/dct_test.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/image/names.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/math/bits.go View 2 chunks +5 lines, -5 lines 0 comments Download
M src/pkg/mime/multipart/multipart.go View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/net/http/cookiejar/jar.go View 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/net/http/header.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/http/request.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/http/response.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/http/server.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/http/transfer.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/doc.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/error.go View 1 chunk +9 lines, -6 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 1 chunk +4 lines, -7 lines 0 comments Download
M src/pkg/sort/sort.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/text/template/exec.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 8 months ago (2013-07-23 00:28:10 UTC) #1
dsymonds
LGTM with some of the redundancy trimmed. https://codereview.appspot.com/11699043/diff/1/src/pkg/crypto/ecdsa/ecdsa.go File src/pkg/crypto/ecdsa/ecdsa.go (right): https://codereview.appspot.com/11699043/diff/1/src/pkg/crypto/ecdsa/ecdsa.go#newcode127 src/pkg/crypto/ecdsa/ecdsa.go:127: // return ...
11 years, 8 months ago (2013-07-23 00:42:21 UTC) #2
r
*** Submitted as https://code.google.com/p/go/source/detail?r=977306015f5d *** all: be more idiomatic when documenting boolean return values. Phrases ...
11 years, 8 months ago (2013-07-23 01:59:57 UTC) #3
magical
11 years, 8 months ago (2013-07-23 18:10:03 UTC) #4
Message was sent while issue was closed.
https://codereview.appspot.com/11699043/diff/6002/src/pkg/go/ast/ast.go
File src/pkg/go/ast/ast.go (right):

https://codereview.appspot.com/11699043/diff/6002/src/pkg/go/ast/ast.go#newco...
src/pkg/go/ast/ast.go:523: // (that is, whether it begins with an upper-case
letter).
Make these edits below, as well?

https://codereview.appspot.com/11699043/diff/6002/src/pkg/html/template/css.go
File src/pkg/html/template/css.go (right):

https://codereview.appspot.com/11699043/diff/6002/src/pkg/html/template/css.g...
src/pkg/html/template/css.go:102: // isHex reports reports whether the given
character is a hex digit.
s/reports reports/reports/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b