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

Issue 7300099: code review 7300099: net: document OpError (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by bradfitz
Modified:
11 years, 2 months ago
Reviewers:
CC:
adg, rsc, golang-dev
Visibility:
Public.

Description

net: document OpError Fixes issue 4797

Patch Set 1 #

Patch Set 2 : diff -r 6c6b3968b605 https://go.googlecode.com/hg/ #

Total comments: 12

Patch Set 3 : diff -r 8c44c45a208e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M src/pkg/net/net.go View 1 2 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 8
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 2 months ago (2013-02-13 01:06:28 UTC) #1
bradfitz
Do we want to document on each function/method where this error type is returned? Currently ...
11 years, 2 months ago (2013-02-13 01:09:41 UTC) #2
adg
On 13 February 2013 12:09, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Do we want to document ...
11 years, 2 months ago (2013-02-13 01:45:36 UTC) #3
rsc
I don't believe we should bother to list all the places that return OpError. The ...
11 years, 2 months ago (2013-02-13 23:00:03 UTC) #4
bradfitz
Okay, but what about this CL itself, documenting a public type? On Wed, Feb 13, ...
11 years, 2 months ago (2013-02-13 23:27:30 UTC) #5
adg
https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go File src/pkg/net/net.go (right): https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode279 src/pkg/net/net.go:279: // An OpError is the error type returned by ...
11 years, 2 months ago (2013-02-14 06:39:55 UTC) #6
rsc
LGTM https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go File src/pkg/net/net.go (right): https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode284 src/pkg/net/net.go:284: // "write", "dial", "shutdown", "listen", "sendfile", etc. On ...
11 years, 2 months ago (2013-02-14 15:18:43 UTC) #7
bradfitz
11 years, 2 months ago (2013-02-14 17:29:40 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=9ab99f5d4a82 ***

net: document OpError

Fixes issue 4797

R=adg, rsc
CC=golang-dev
https://codereview.appspot.com/7300099

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go
File src/pkg/net/net.go (right):

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode279
src/pkg/net/net.go:279: // An OpError is the error type returned by most
functions in the net
On 2013/02/14 06:39:55, adg wrote:
> s/An //

Done.

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode280
src/pkg/net/net.go:280: // package and describes an operation and address of an
underlying
On 2013/02/14 06:39:55, adg wrote:
> s/ and/. It/
> 
> It describes the operation, network type, and address of an underlying error.

Done.

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode284
src/pkg/net/net.go:284: // "write", "dial", "shutdown", "listen", "sendfile",
etc.
On 2013/02/14 15:18:43, rsc wrote:
> On 2013/02/14 06:39:55, adg wrote:
> > Are there others? If not, remove the etc. If so, should we list all of them?
> 
> Let's not list them all. `such as "read" or "write".` seems fine to me.

Done.

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode288
src/pkg/net/net.go:288: // such as "tcp", "udp6", etc.
On 2013/02/14 15:18:43, rsc wrote:
> such as "tcp" or "udp6".

Done.

https://codereview.appspot.com/7300099/diff/2001/src/pkg/net/net.go#newcode294
src/pkg/net/net.go:294: // Error is the underlying error.
On 2013/02/14 15:18:43, rsc wrote:
> On 2013/02/14 06:39:55, adg wrote:
> > I'm not sure if it should be "underlying" or "specific"?
> 
> how about
> 
> Err is the error that occurred during the operation.
> 
> note s/Error/Err/

Done.
Sign in to reply to this message.

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