Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Fix function comments based on best practices from Effective Go #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fsnotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ 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
w.fsnmut.Unlock()
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)
Expand Down