Skip to content

Commit

Permalink
Add missing await to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfbacon authored and cbiffle committed Mar 2, 2024
1 parent f39b28f commit 330f131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ pub const ALL_TASKS: usize = !0;
/// // Enable the rx data interrupt so we get notified.
/// uart.control.modify(|_, w| w.rx_irq_enabled().set());
/// // Listen for data, using a predicate to filter out spurious wakes.
/// RX_NOT_EMPTY.until(|| uart.status.read().rx_not_empty());
/// RX_NOT_EMPTY.until(|| uart.status.read().rx_not_empty()).await;
///
/// UART.data.read()
/// }
Expand Down

0 comments on commit 330f131

Please sign in to comment.