From 933dc23332b18abd89471004b0f4ccd16f701ef2 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 7 Jul 2021 19:47:44 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Wit Riewrangboonya --- protocol/binary/stream_reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/binary/stream_reader.go b/protocol/binary/stream_reader.go index 2c225c0d..d7303706 100644 --- a/protocol/binary/stream_reader.go +++ b/protocol/binary/stream_reader.go @@ -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 @@ -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 }