@@ -537,7 +537,7 @@ fn test_epoll_lost_events() {
537537 assert ! ( check_epoll_wait:: <1 >( epfd, & [ ( expected_event1, expected_value1) ] ) ) ;
538538}
539539
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
541541// returned notification.
542542// Related discussion in https://github.com/rust-lang/miri/pull/3818#discussion_r1720679440.
543543fn test_ready_list_fetching_logic ( ) {
@@ -550,15 +550,15 @@ fn test_ready_list_fetching_logic() {
550550 let fd0 = unsafe { libc:: eventfd ( 0 , flags) } ;
551551 let fd1 = unsafe { libc:: eventfd ( 0 , flags) } ;
552552
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.
554554 let mut ev = libc:: epoll_event { events : EPOLL_IN_OUT_ET , u64 : fd0 as u64 } ;
555555 let res = unsafe { libc:: epoll_ctl ( epfd, libc:: EPOLL_CTL_ADD , fd0, & mut ev) } ;
556556 assert_ne ! ( res, -1 ) ;
557557 let mut ev = libc:: epoll_event { events : EPOLL_IN_OUT_ET , u64 : fd1 as u64 } ;
558558 let res = unsafe { libc:: epoll_ctl ( epfd, libc:: EPOLL_CTL_ADD , fd1, & mut ev) } ;
559559 assert_ne ! ( res, -1 ) ;
560560
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.
562562 let res = unsafe { libc:: close ( fd0) } ;
563563 assert_eq ! ( res, 0 ) ;
564564
0 commit comments