mirror of
https://github.com/golang/go
synced 2024-11-21 18:14:42 -07:00
fix example in inotify
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4174045
This commit is contained in:
parent
37b1787392
commit
047b023119
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user