Skip to content

Commit

Permalink
update credits for timeoutError
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Feb 22, 2018
1 parent bb7847f commit 0222e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ var (
errClosed = errors.New("pinger closed")
)

// Taken from:
// https://github.com/golang/go/blob/master/src/net/net.go#L417-L421.
// timeoutError implementes the net.Error interface. Originally taken from
// https://github.com/golang/go/blob/release-branch.go1.8/src/net/net.go#L505-L509
type timeoutError struct{}

func (e *timeoutError) Error() string { return "i/o timeout" }
Expand Down

0 comments on commit 0222e4b

Please sign in to comment.