Skip to content

Commit 4eee3bd

Browse files
sunfishcodefogti
authored andcommitted
Fix examples.
1 parent 3d2c528 commit 4eee3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/wait-signal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod example {
1717
let poller = Poller::new().unwrap();
1818

1919
// Register SIGINT in the poller.
20-
let sigint = Signal(rustix::process::Signal::INT as _);
20+
let sigint = Signal(rustix::process::Signal::INT.as_raw());
2121
poller.add_filter(sigint, 1, PollMode::Oneshot).unwrap();
2222

2323
let mut events = Events::new();

0 commit comments

Comments
 (0)