Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Wit Riewrangboonya <wit@uber.com>
  • Loading branch information
abhinav and witriew authored Jul 8, 2021
1 parent 0abdb94 commit 933dc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/binary/stream_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type StreamReader struct {
reader io.Reader
buffer [8]byte

// discard is points to either discardOffset or discardStream based on
// discard points to either discardOffset or discardStream based on
// the implementation of the io.Reader we're using.
discard func(int64) error

Expand All @@ -78,7 +78,7 @@ type StreamReader struct {
_discardOffset func(int64) error

// This field is set only if the wrapped reader is an offset reader.
// DO NOT USE if you're not discardOffset.
// ONLY USE if you are discardOffset.
_or *offsetReader
}

Expand Down

0 comments on commit 933dc23

Please sign in to comment.