aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Lonjaret <mathieu.lonjaret@gmail.com>2011-02-11 08:30:34 -0500
committerAndrew Gerrand <adg@golang.org>2011-02-11 08:30:34 -0500
commit047b023119fe6f60e08676697e52bfcb3e33fb04 (patch)
treea83aabcb32005a30942a1ded1dd362d358dd64eb
parent37b178739279d2ab17b836de64375401abdda8ae (diff)
downloadgo-047b023119fe6f60e08676697e52bfcb3e33fb04.tar.gz
go-047b023119fe6f60e08676697e52bfcb3e33fb04.zip
fix example in inotify
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4174045
-rw-r--r--src/pkg/os/inotify/inotify_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/os/inotify/inotify_linux.go b/src/pkg/os/inotify/inotify_linux.go
index 9d7a074424..96c229e7b7 100644
--- a/src/pkg/os/inotify/inotify_linux.go
+++ b/src/pkg/os/inotify/inotify_linux.go
@@ -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 {