Fix typos in pkg

Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
bin liu
2018-02-10 19:28:12 +08:00
parent ab3ea81376
commit 7a7a8a33a4
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ var eol = []byte("\n")
// ErrNonPositiveLinesNumber is an error returned if the lines number was negative.
var ErrNonPositiveLinesNumber = errors.New("The number of lines to extract from the file must be positive")
//TailFile returns last n lines of reader f (could be a fil).
//TailFile returns last n lines of reader f (could be a nil).
func TailFile(f io.ReadSeeker, n int) ([][]byte, error) {
if n <= 0 {
return nil, ErrNonPositiveLinesNumber