Skip to content

Commit f7b080b

Browse files
committed
Auto merge of #45531 - steveklabnik:fix-unstable-book-formatting, r=kennytm
Fix formatting in unstable book's attr-literals section
2 parents 51456a6 + a82ffa4 commit f7b080b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/doc/unstable-book/src/language-features/attr-literals.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ The `attr_literals` unstable feature allows other types of literals to be used
1515
in attributes. Here are some examples of attributes that can now be used with
1616
this feature enabled:
1717

18-
+```rust,ignore
19-
+#[attr]
20-
+#[attr(true)]
21-
+#[attr(ident)]
22-
+#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
23-
+#[attr(100)]
24-
+#[attr(enabled = true)]
25-
+#[enabled(true)]
26-
+#[attr("hello")]
27-
+#[repr(C, align = 4)]
28-
+#[repr(C, align(4))]
29-
+```
18+
```rust,ignore
19+
#[attr]
20+
#[attr(true)]
21+
#[attr(ident)]
22+
#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
23+
#[attr(100)]
24+
#[attr(enabled = true)]
25+
#[enabled(true)]
26+
#[attr("hello")]
27+
#[repr(C, align = 4)]
28+
#[repr(C, align(4))]
29+
```
3030

0 commit comments

Comments
 (0)