]> Cypherpunks repositories - gostls13.git/commitdiff
fix example in inotify
authorMathieu Lonjaret <mathieu.lonjaret@gmail.com>
Fri, 11 Feb 2011 13:30:34 +0000 (08:30 -0500)
committerAndrew Gerrand <adg@golang.org>
Fri, 11 Feb 2011 13:30:34 +0000 (08:30 -0500)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4174045

src/pkg/os/inotify/inotify_linux.go

index 9d7a074424dbd992bd752b4c2dc5a338c9879378..96c229e7b744a1cfcc5e13d928e026775c771e93 100644 (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 {