Skip to content

Commit fcf0aa6

Browse files
author
Dean Karn
committed
Fix return type in LimitReader function
LimitReader now returns *LimitedReader instead of io.Reader.
1 parent e5cdd91 commit fcf0aa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pkg
2-
![Project status](https://img.shields.io/badge/version-3.0.0-green.svg)
2+
![Project status](https://img.shields.io/badge/version-3.0.1-green.svg)
33
[![Build Status](https://travis-ci.org/go-playground/pkg.svg?branch=master)](https://travis-ci.org/go-playground/pkg)
44
[![Coverage Status](https://coveralls.io/repos/github/go-playground/pkg/badge.svg?branch=master)](https://coveralls.io/github/go-playground/pkg?branch=master)
55
[![GoDoc](https://godoc.org/github.com/go-playground/pkg?status.svg)](https://godoc.org/github.com/go-playground/pkg)

io/limit_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
// LimitReader returns a Reader that reads from r
1515
// but stops with LimitedReaderEOF after n bytes.
1616
// The underlying implementation is a *LimitedReader.
17-
func LimitReader(r io.Reader, n int64) io.Reader {
17+
func LimitReader(r io.Reader, n int64) *LimitedReader {
1818
return &LimitedReader{R: r, N: n}
1919
}
2020

0 commit comments

Comments
 (0)