Skip to content

Commit 67cfea5

Browse files
authored
test: fix compile errors (#114)
1 parent 69e5262 commit 67cfea5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
//! let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper) };
3131
//! let o = &mut r.operational;
3232
//!
33-
//! o.usbcmd.update(|u| u.set_run_stop(true));
33+
//! o.usbcmd.update(|u| {
34+
//! u.set_run_stop();
35+
//! });
3436
//! while o.usbsts.read().hc_halted() {}
3537
//! ```
3638

0 commit comments

Comments
 (0)