From d5f9e6c0872ff6513dd258c06ee3c361e5fe2bbf Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Mon, 29 Feb 2016 22:43:14 -0800 Subject: [PATCH] tail: Fix tyop. Change-Id: I0f9b88fc327b169c748794e86efb0aa0a03b3e2a --- 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)