Skip to content

Commit e39c393

Browse files
Fix invalid markdown codeblock label
1 parent 7c72edf commit e39c393

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_builtin_macros/src/deriving/generic

1 file changed

+6
-6
lines changed

compiler/rustc_builtin_macros/src/deriving/generic/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
//!
8989
//! When generating the `expr` for the `A` impl, the `SubstructureFields` is
9090
//!
91-
//! ```{.text}
91+
//! ```text
9292
//! Struct(vec![FieldInfo {
9393
//! span: <span of x>
9494
//! name: Some(<ident of x>),
@@ -99,7 +99,7 @@
9999
//!
100100
//! For the `B` impl, called with `B(a)` and `B(b)`,
101101
//!
102-
//! ```{.text}
102+
//! ```text
103103
//! Struct(vec![FieldInfo {
104104
//! span: <span of `i32`>,
105105
//! name: None,
@@ -113,7 +113,7 @@
113113
//! When generating the `expr` for a call with `self == C0(a)` and `other
114114
//! == C0(b)`, the SubstructureFields is
115115
//!
116-
//! ```{.text}
116+
//! ```text
117117
//! EnumMatching(0, <ast::Variant for C0>,
118118
//! vec![FieldInfo {
119119
//! span: <span of i32>
@@ -125,7 +125,7 @@
125125
//!
126126
//! For `C1 {x}` and `C1 {x}`,
127127
//!
128-
//! ```{.text}
128+
//! ```text
129129
//! EnumMatching(1, <ast::Variant for C1>,
130130
//! vec![FieldInfo {
131131
//! span: <span of x>
@@ -137,7 +137,7 @@
137137
//!
138138
//! For the tags,
139139
//!
140-
//! ```{.text}
140+
//! ```text
141141
//! EnumTag(
142142
//! &[<ident of self tag>, <ident of other tag>], <expr to combine with>)
143143
//! ```
@@ -149,7 +149,7 @@
149149
//!
150150
//! A static method on the types above would result in,
151151
//!
152-
//! ```{.text}
152+
//! ```text
153153
//! StaticStruct(<ast::VariantData of A>, Named(vec![(<ident of x>, <span of x>)]))
154154
//!
155155
//! StaticStruct(<ast::VariantData of B>, Unnamed(vec![<span of x>]))

0 commit comments

Comments
 (0)