Skip to content

Commit

Permalink
Fixed faulty doc test in blocking.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
videbar committed Jan 2, 2024
1 parent ee84bf3 commit f3618dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- Fix faulty doc test in `blocking.rs`
- Update the non-blocking display documentation to better explain when methods
should be called from within a critical section
- Bump example dependencies to latest versions to fix build
Expand Down
9 changes: 9 additions & 0 deletions microbit-common/src/display/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
//! connector. That means that
//!
//! ```no_run
//! # use microbit_common as microbit;
//! # use microbit::{
//! # Board,
//! # hal,
//! # display::blocking::Display,
//! # };
//! # let board = Board::take().unwrap();
//! # let mut timer = hal::Timer::new(board.TIMER0);
//! # let mut display = Display::new(board.display_pins);
//! display.show(
//! &mut timer,
//! [
Expand Down

0 comments on commit f3618dc

Please sign in to comment.