From 6c4874017d9d389f9129a6a618c359be84e3533e Mon Sep 17 00:00:00 2001 From: Nathan Youngman Date: Sun, 2 Feb 2014 00:00:38 -0700 Subject: [PATCH] more typo fixes --- fsnotify_bsd.go | 8 ++++---- fsnotify_windows.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fsnotify_bsd.go b/fsnotify_bsd.go index 05f657e..85aeeb3 100644 --- a/fsnotify_bsd.go +++ b/fsnotify_bsd.go @@ -39,18 +39,18 @@ type FileEvent struct { create bool // set by fsnotify package if found new file } -// IsCreate reports whether the FileEvent was triggerd by a creation +// IsCreate reports whether the FileEvent was triggered by a creation func (e *FileEvent) IsCreate() bool { return e.create } -// IsDelete reports whether the FileEvent was triggerd by a delete +// IsDelete reports whether the FileEvent was triggered by a delete func (e *FileEvent) IsDelete() bool { return (e.mask & sys_NOTE_DELETE) == sys_NOTE_DELETE } -// IsModify reports whether the FileEvent was triggerd by a file modification +// IsModify reports whether the FileEvent was triggered by a file modification func (e *FileEvent) IsModify() bool { return ((e.mask&sys_NOTE_WRITE) == sys_NOTE_WRITE || (e.mask&sys_NOTE_ATTRIB) == sys_NOTE_ATTRIB) } -// IsRename reports whether the FileEvent was triggerd by a change name +// IsRename reports whether the FileEvent was triggered by a change name func (e *FileEvent) IsRename() bool { return (e.mask & sys_NOTE_RENAME) == sys_NOTE_RENAME } // IsAttrib reports whether the FileEvent was triggered by a change in the file metadata (eg. diff --git a/fsnotify_windows.go b/fsnotify_windows.go index 8ad1e19..02b4f1f 100644 --- a/fsnotify_windows.go +++ b/fsnotify_windows.go @@ -54,20 +54,20 @@ type FileEvent struct { Name string // File name (optional) } -// IsCreate reports whether the FileEvent was triggerd by a creation +// IsCreate reports whether the FileEvent was triggered by a creation func (e *FileEvent) IsCreate() bool { return (e.mask & sys_FS_CREATE) == sys_FS_CREATE } -// IsDelete reports whether the FileEvent was triggerd by a delete +// IsDelete reports whether the FileEvent was triggered by a delete func (e *FileEvent) IsDelete() bool { return ((e.mask&sys_FS_DELETE) == sys_FS_DELETE || (e.mask&sys_FS_DELETE_SELF) == sys_FS_DELETE_SELF) } -// IsModify reports whether the FileEvent was triggerd by a file modification or attribute change +// IsModify reports whether the FileEvent was triggered by a file modification or attribute change func (e *FileEvent) IsModify() bool { return ((e.mask&sys_FS_MODIFY) == sys_FS_MODIFY || (e.mask&sys_FS_ATTRIB) == sys_FS_ATTRIB) } -// IsRename reports whether the FileEvent was triggerd by a change name +// IsRename reports whether the FileEvent was triggered by a change name func (e *FileEvent) IsRename() bool { return ((e.mask&sys_FS_MOVE) == sys_FS_MOVE || (e.mask&sys_FS_MOVE_SELF) == sys_FS_MOVE_SELF || (e.mask&sys_FS_MOVED_FROM) == sys_FS_MOVED_FROM || (e.mask&sys_FS_MOVED_TO) == sys_FS_MOVED_TO) } -- 2.50.1