Skip to content

Commit

Permalink
Merge pull request #2 from acomagu/remove-debug-named-return
Browse files Browse the repository at this point in the history
Remove named return for debugging
  • Loading branch information
acomagu authored Jun 18, 2019
2 parents 950dbc5 + 8516283 commit dac7fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bufpipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func New(buf []byte) (*PipeReader, *PipeWriter) {
// reading from the internal buffer, otherwise blocking until a writer arrives
// or the write end is closed. If the write end is closed with an error, that
// error is returned as err; otherwise err is io.EOF.
func (r *PipeReader) Read(data []byte) (nn int, ee error) {
func (r *PipeReader) Read(data []byte) (int, error) {
r.cond.L.Lock()
defer r.cond.L.Unlock()

Expand Down

0 comments on commit dac7fac

Please sign in to comment.