From 2f69c9fa4ea2e0f05b5ef6560b1707b7be09a2cf Mon Sep 17 00:00:00 2001 From: Tony Cheneau Date: Mon, 4 Apr 2016 16:51:26 +0200 Subject: [PATCH] Fix typo (colseFile -> closeFile) --- tail.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tail.go b/tail.go index 1bae11c..471c24d 100644 --- a/tail.go +++ b/tail.go @@ -158,10 +158,10 @@ func (tail *Tail) Stop() error { 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 @@ -169,7 +169,7 @@ func (tail *Tail) colseFile() { } func (tail *Tail) reopen() error { - tail.colseFile() + tail.closeFile() for { var err error tail.file, err = OpenFile(tail.Filename)