From 4706f3d3036085624e6a80eaa3dc24a312762f87 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 13 Feb 2019 21:21:16 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- fsnotify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsnotify.go b/fsnotify.go index 9a48d84..4667261 100644 --- a/fsnotify.go +++ b/fsnotify.go @@ -62,7 +62,7 @@ func (w *Watcher) Watch(path string) error { return w.WatchFlags(path, FSN_ALL) } -// Watch a given file path for a particular set of notifications (FSN_MODIFY etc.) +// WatchFlags: Watch a given file path for a particular set of notifications (FSN_MODIFY etc.) func (w *Watcher) WatchFlags(path string, flags uint32) error { w.fsnmut.Lock() w.fsnFlags[path] = flags @@ -70,7 +70,7 @@ func (w *Watcher) WatchFlags(path string, flags uint32) error { return w.watch(path) } -// Remove a watch on a file +// RemoveWatch removes a watch on a file func (w *Watcher) RemoveWatch(path string) error { w.fsnmut.Lock() delete(w.fsnFlags, path)