Skip to content

Commit

Permalink
aghio: fix final inaccuracies
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 23, 2020
1 parent 4dd382a commit 6edd1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/aghio/limitedreadcloser.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (lrc *limitedReadCloser) Close() error {

// LimitReadCloser wraps ReadCloser to make it's Reader stop with
// ErrLimitReached after n bytes read.
func LimitReadCloser(rc io.ReadCloser, n int64) (newRC io.ReadCloser, err error) {
func LimitReadCloser(rc io.ReadCloser, n int64) (limited io.ReadCloser, err error) {
if n < 0 {
return nil, fmt.Errorf("aghio: invalid n in LimitReadCloser: %d", n)
}
Expand Down

0 comments on commit 6edd1e0

Please sign in to comment.