From 0f5bc072cdb6d51bf27d6fd236fe2faf894124f9 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Fri, 8 Jul 2022 12:58:09 +0200 Subject: [PATCH] Use `ignore` instead of `text` (#378) 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 https://github.com/rust-lang/rust/issues/97030#issuecomment-1134499264 this is the proper fix, so this closes #374 --- rp2040-hal/src/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/intrinsics.rs b/rp2040-hal/src/intrinsics.rs index 8c32202..ca77da1 100644 --- a/rp2040-hal/src/intrinsics.rs +++ b/rp2040-hal/src/intrinsics.rs @@ -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 { /// // ...