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
This commit is contained in:
Jan Niehusmann 2022-07-08 12:58:09 +02:00 committed by GitHub
parent 803f582e0f
commit 0f5bc072cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ 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:
/// ///
/// ```text /// ```ignore
/// intrinsics! { /// intrinsics! {
/// extern "C" fn foo(a: i32) -> u32 { /// extern "C" fn foo(a: i32) -> u32 {
/// // ... /// // ...