Skip to content

Commit

Permalink
code block note.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Apr 24, 2023
1 parent 9bb3f25 commit e84d778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book_src/ex2.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ In Rust terms it's a [VolAddress](https://docs.rs/voladdress/latest/voladdress/s
It's safe to read or write, and it's located at `0x0400_0000` like we saw before.

```rust
// in lib.rs

use voladdress::{Safe, VolAddress};

pub const DISPCNT: VolAddress<u16, Safe, Safe> =
Expand Down

0 comments on commit e84d778

Please sign in to comment.