diff --git a/README.md b/README.md index a21f9e7..a79920f 100644 --- a/README.md +++ b/README.md @@ -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) }