@@ -537,7 +537,7 @@ fn test_epoll_lost_events() {
537
537
assert ! ( check_epoll_wait:: <1 >( epfd, & [ ( expected_event1, expected_value1) ] ) ) ;
538
538
}
539
539
540
- // This is testing if closing an fd that is already in ready_list will cause an empty entry in
540
+ // This is testing if closing an fd that is already in ready list will cause an empty entry in
541
541
// returned notification.
542
542
// Related discussion in https://github.com/rust-lang/miri/pull/3818#discussion_r1720679440.
543
543
fn test_ready_list_fetching_logic ( ) {
@@ -550,15 +550,15 @@ fn test_ready_list_fetching_logic() {
550
550
let fd0 = unsafe { libc:: eventfd ( 0 , flags) } ;
551
551
let fd1 = unsafe { libc:: eventfd ( 0 , flags) } ;
552
552
553
- // Register both fd to the same epoll instance. At this point, both of them is in ready list.
553
+ // Register both fd to the same epoll instance. At this point, both of them are on the ready list.
554
554
let mut ev = libc:: epoll_event { events : EPOLL_IN_OUT_ET , u64 : fd0 as u64 } ;
555
555
let res = unsafe { libc:: epoll_ctl ( epfd, libc:: EPOLL_CTL_ADD , fd0, & mut ev) } ;
556
556
assert_ne ! ( res, -1 ) ;
557
557
let mut ev = libc:: epoll_event { events : EPOLL_IN_OUT_ET , u64 : fd1 as u64 } ;
558
558
let res = unsafe { libc:: epoll_ctl ( epfd, libc:: EPOLL_CTL_ADD , fd1, & mut ev) } ;
559
559
assert_ne ! ( res, -1 ) ;
560
560
561
- // Close fd0. So the first entry in the ready list will be empty.
561
+ // Close fd0 so the first entry in the ready list will be empty.
562
562
let res = unsafe { libc:: close ( fd0) } ;
563
563
assert_eq ! ( res, 0 ) ;
564
564
0 commit comments