fix README example

This commit is contained in:
Sridhar Ratnakumar 2013-02-05 18:49:32 -08:00
parent 835af806b3
commit f2cd234400
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
A Go package striving to emulate the features of the BSD `tail` program.
```Go
t := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
for line := range t.Lines {
fmt.Println(line.Text)
}