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
parent d5f9e6c087
commit 6c6f39c586
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()