Skip to content

Commit c1c0507

Browse files
9namesExplodingWaffle
authored andcommitted
Wrap intrinsics docstring to avoid breakage (rp-rs#375)
* Wrap code in intrinsics docstring with a text block to fix CI breakage
1 parent 395bf85 commit c1c0507

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

rp2040-hal/src/intrinsics.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,17 @@ macro_rules! intrinsics_aliases {
5858
/// Like the compiler-builtins macro, it accepts a series of functions that
5959
/// looks like normal Rust code:
6060
///
61-
/// intrinsics! {
62-
/// extern "C" fn foo(a: i32) -> u32 {
63-
/// // ...
64-
/// }
65-
///
66-
/// #[nonstandard_attribute]
67-
/// extern "C" fn bar(a: i32) -> u32 {
68-
/// // ...
69-
/// }
61+
/// ```text
62+
/// intrinsics! {
63+
/// extern "C" fn foo(a: i32) -> u32 {
64+
/// // ...
65+
/// }
66+
/// #[nonstandard_attribute]
67+
/// extern "C" fn bar(a: i32) -> u32 {
68+
/// // ...
7069
/// }
70+
/// }
71+
/// ```
7172
///
7273
/// Each function can also be decorated with nonstandard attributes to control
7374
/// additional behaviour:

0 commit comments

Comments
 (0)