Skip to content

Commit

Permalink
Merge pull request #6 from jwasinger/fix-ptr-syntax
Browse files Browse the repository at this point in the history
Fix some erroneous pointer types
  • Loading branch information
Stebalien authored Nov 25, 2017
2 parents e1d4bc0 + 1b2dd33 commit 063ce36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msgio.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ type reader struct {
// will read whole messages at a time (using the length). Assumes an equivalent
// writer on the other side.
func NewReader(r io.Reader) ReadCloser {
return NewReaderWithPool(r, &mpool.ByteSlicePool)
return NewReaderWithPool(r, mpool.ByteSlicePool)
}

// NewReaderWithPool wraps an io.Reader with a msgio framed reader. The msgio.Reader
Expand Down
2 changes: 1 addition & 1 deletion varint.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type varintReader struct {
// Varints read according to https://golang.org/pkg/encoding/binary/#ReadUvarint
// Assumes an equivalent writer on the other side.
func NewVarintReader(r io.Reader) ReadCloser {
return NewVarintReaderWithPool(r, &mpool.ByteSlicePool)
return NewVarintReaderWithPool(r, mpool.ByteSlicePool)
}

// NewVarintReaderWithPool wraps an io.Reader with a varint msgio framed reader.
Expand Down

0 comments on commit 063ce36

Please sign in to comment.