Skip to content

Commit 33f4d2e

Browse files
committed
epoll: fix comment typo
1 parent 7d38c51 commit 33f4d2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/miri/src/shims/unix/linux/epoll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
539539
)?;
540540
if is_updated {
541541
// Edge-triggered notification only notify one thread even if there are
542-
// multiple threads block on the same epfd.
542+
// multiple threads blocked on the same epfd.
543543

544544
// This unwrap can never fail because if the current epoll instance were
545545
// closed, the upgrade of weak_epoll_interest

src/tools/miri/tests/fail-dep/libc/eventfd_block_read_twice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::thread;
1414
// 2. Thread 2 blocks.
1515
// 3. Thread 3 unblocks both thread 1 and thread 2.
1616
// 4. Thread 1 reads.
17-
// 5. Thread 2's `read` can neber complete -> deadlocked.
17+
// 5. Thread 2's `read` can never complete -> deadlocked.
1818

1919
fn main() {
2020
// eventfd write will block when EFD_NONBLOCK flag is clear

0 commit comments

Comments
 (0)