watch: Fix prototype to be more restrictive.

Change-Id: Ic744312efa91cf5c2dc2810e597353a080dccb70
This commit is contained in:
Benoit Sigoure 2016-02-29 22:44:16 -08:00 committed by Nino Khodabandeh
parent ac5972aca8
commit 5e2d004af5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func remove(winfo *watchInfo) {
// Events returns a channel to which FileEvents corresponding to the input filename // Events returns a channel to which FileEvents corresponding to the input filename
// will be sent. This channel will be closed when removeWatch is called on this // will be sent. This channel will be closed when removeWatch is called on this
// filename. // filename.
func Events(fname string) chan fsnotify.Event { func Events(fname string) <-chan fsnotify.Event {
shared.mux.Lock() shared.mux.Lock()
defer shared.mux.Unlock() defer shared.mux.Unlock()