Skip to content

Commit ae1726b

Browse files
committed
Ignore FieldIdx and VariantIdx examples in docs
1 parent d517a1c commit ae1726b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/stable_mir/src/mir/body.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ pub const RETURN_LOCAL: Local = 0;
498498
/// The source-order index of a field in a variant.
499499
///
500500
/// For example, in the following types,
501-
/// ```rust
501+
/// ```ignore(illustrative)
502502
/// enum Demo1 {
503503
/// Variant0 { a: bool, b: i32 },
504504
/// Variant1 { c: u8, d: u64 },
@@ -514,7 +514,7 @@ type FieldIdx = usize;
514514
/// The source-order index of a variant in a type.
515515
///
516516
/// For example, in the following types,
517-
/// ```rust
517+
/// ```ignore(illustrative)
518518
/// enum Demo1 {
519519
/// Variant0 { a: bool, b: i32 },
520520
/// Variant1 { c: u8, d: u64 },

0 commit comments

Comments
 (0)