Commit 047b0231 authored by Mathieu Lonjaret's avatar Mathieu Lonjaret Committed by Andrew Gerrand

fix example in inotify

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4174045
parent 37b17873
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment