diff --git a/tail.go b/tail.go index b2b1bc2..307a026 100644 --- a/tail.go +++ b/tail.go @@ -167,10 +167,10 @@ var errStopAtEOF = errors.New("tail: stop at eof") func (tail *Tail) close() { close(tail.Lines) - tail.colseFile() + tail.closeFile() } -func (tail *Tail) colseFile() { +func (tail *Tail) closeFile() { if tail.file != nil { tail.file.Close() tail.file = nil @@ -178,7 +178,7 @@ func (tail *Tail) colseFile() { } func (tail *Tail) reopen() error { - tail.colseFile() + tail.closeFile() for { var err error tail.file, err = OpenFile(tail.Filename)