Skip to content

Commit dd44b83

Browse files
committed
docs: fix examples on FreeBSD
1 parent e243eab commit dd44b83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uinput.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//! dev.write(&[KeyEvent::new(Key::KEY_Q, KeyState::RELEASED).into()])?;
4848
//!
4949
//! // In another thread:
50-
//! # dev.set_nonblocking(true)?; // Make sure the test exits
50+
//! # return Ok(()); // Don't block
5151
//! for res in dev.events() {
5252
//! let event = res?;
5353
//! println!("Received event: {event:?}");
@@ -93,7 +93,7 @@
9393
//! .with_ff_features([ff::Feature::RUMBLE])?
9494
//! .with_ff_effects_max(5)?
9595
//! .build("Rusty Rumbler")?;
96-
//! # dev.set_nonblocking(true)?; // Make sure the test exits
96+
//! # return Ok(()); // Don't block
9797
//!
9898
//! for res in dev.events() {
9999
//! let event = res?;

0 commit comments

Comments
 (0)