diff --git a/src/fd_readable_set.rs b/src/fd_readable_set.rs index 07ed3f547..3dc61d03c 100644 --- a/src/fd_readable_set.rs +++ b/src/fd_readable_set.rs @@ -64,8 +64,8 @@ impl FdReadableSet { fd >= 0 && unsafe { libc::FD_ISSET(fd, &self.fdset_) } } - /// Call `select()` or `poll()`, according to FISH_READABLE_SET_USE_POLL. Note this - /// destructively modifies the set. Returns the result of `select()` or `poll()`. + /// Call `select()`. Note this destructively modifies the set. Returns the result of + /// `select()`. pub fn check_readable(&mut self, timeout_usec: u64) -> c_int { let null = std::ptr::null_mut(); let mut tvs; @@ -188,8 +188,7 @@ impl FdReadableSet { }; } - /// Call select() or poll(), according to FISH_READABLE_SET_USE_POLL. Note this destructively - /// modifies the set. Return the result of select() or poll(). + /// Call poll(). Note this destructively modifies the set. Return the result of poll(). /// /// TODO: Change to [`Duration`](std::time::Duration) once FFI usage is done. pub fn check_readable(&mut self, timeout_usec: u64) -> c_int { diff --git a/src/screen.rs b/src/screen.rs index 29ea5731c..68f2bddca 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -122,8 +122,7 @@ pub struct Cursor { pub struct ScreenData { line_datas: Vec, - /// The width of the screen in this rendering. - /// -1 if not set, i.e. we have not rendered before. + /// The width of the screen once we have rendered. screen_width: Option, cursor: Cursor,