Wrap intrinsics docstring to avoid breakage (#375)

* Wrap code in intrinsics docstring with a text block to fix CI breakage
This commit is contained in:
9names 2022-07-06 19:52:31 +10:00 committed by GitHub
parent b12aecb51c
commit 711694881d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,16 +58,17 @@ macro_rules! intrinsics_aliases {
/// Like the compiler-builtins macro, it accepts a series of functions that /// Like the compiler-builtins macro, it accepts a series of functions that
/// looks like normal Rust code: /// looks like normal Rust code:
/// ///
/// intrinsics! { /// ```text
/// extern "C" fn foo(a: i32) -> u32 { /// intrinsics! {
/// // ... /// extern "C" fn foo(a: i32) -> u32 {
/// } /// // ...
///
/// #[nonstandard_attribute]
/// extern "C" fn bar(a: i32) -> u32 {
/// // ...
/// }
/// } /// }
/// #[nonstandard_attribute]
/// extern "C" fn bar(a: i32) -> u32 {
/// // ...
/// }
/// }
/// ```
/// ///
/// Each function can also be decorated with nonstandard attributes to control /// Each function can also be decorated with nonstandard attributes to control
/// additional behaviour: /// additional behaviour: