Auto merge of #45531 - steveklabnik:fix-unstable-book-formatting, r=kennytm
Fix formatting in unstable book's attr-literals section
This commit is contained in:
commit
f7b080b38e
1 changed files with 12 additions and 12 deletions
|
@ -15,16 +15,16 @@ The `attr_literals` unstable feature allows other types of literals to be used
|
||||||
in attributes. Here are some examples of attributes that can now be used with
|
in attributes. Here are some examples of attributes that can now be used with
|
||||||
this feature enabled:
|
this feature enabled:
|
||||||
|
|
||||||
+```rust,ignore
|
```rust,ignore
|
||||||
+#[attr]
|
#[attr]
|
||||||
+#[attr(true)]
|
#[attr(true)]
|
||||||
+#[attr(ident)]
|
#[attr(ident)]
|
||||||
+#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
|
#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
|
||||||
+#[attr(100)]
|
#[attr(100)]
|
||||||
+#[attr(enabled = true)]
|
#[attr(enabled = true)]
|
||||||
+#[enabled(true)]
|
#[enabled(true)]
|
||||||
+#[attr("hello")]
|
#[attr("hello")]
|
||||||
+#[repr(C, align = 4)]
|
#[repr(C, align = 4)]
|
||||||
+#[repr(C, align(4))]
|
#[repr(C, align(4))]
|
||||||
+```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue