Skip to content

Commit

Permalink
Use ignore instead of text (rp-rs#378)
Browse files Browse the repository at this point in the history
While the code block fails to compile, it's still code and not random text. Marking it with `ignore` allows for proper syntax highlighting, for example.

According to rust-lang/rust#97030 (comment) this is the proper fix, so this closes rp-rs#374
  • Loading branch information
jannic authored and ExplodingWaffle committed Aug 14, 2022
1 parent 93264a0 commit 8df7756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rp2040-hal/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ macro_rules! intrinsics_aliases {
/// Like the compiler-builtins macro, it accepts a series of functions that
/// looks like normal Rust code:
///
/// ```text
/// ```ignore
/// intrinsics! {
/// extern "C" fn foo(a: i32) -> u32 {
/// // ...
Expand Down

0 comments on commit 8df7756

Please sign in to comment.