1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:14:40 -07:00

fix example in inotify

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4174045
This commit is contained in:
Mathieu Lonjaret 2011-02-11 08:30:34 -05:00 committed by Andrew Gerrand
parent 37b1787392
commit 047b023119

View File

@ -8,11 +8,11 @@ This package implements a wrapper for the Linux inotify system.
Example:
watcher, err := inotify.NewWatcher()
if err != nil {
log.Exit(err)
log.Fatal(err)
}
err = watcher.Watch("/tmp")
if err != nil {
log.Exit(err)
log.Fatal(err)
}
for {
select {