Skip to content

Commit d765321

Browse files
alexkirsz0xpr03
authored andcommitted
Add comment
1 parent 3439340 commit d765321

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notify/src/kqueue.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ impl EventLoop {
302302
Ok(())
303303
}
304304

305+
/// Adds a single watch to the kqueue.
306+
///
307+
/// The caller of this function must call `self.kqueue.watch()` afterwards to register the new watch.
305308
fn add_single_watch(&mut self, path: PathBuf, is_recursive: bool) -> Result<()> {
306309
let event_filter = EventFilter::EVFILT_VNODE;
307310
let filter_flags = FilterFlag::NOTE_DELETE

0 commit comments

Comments
 (0)