Skip to content

Commit

Permalink
Fix formatting in unstable book's attr-literals section
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Oct 25, 2017
1 parent f764eaf commit a82ffa4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/doc/unstable-book/src/language-features/attr-literals.md
Expand Up @@ -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
this feature enabled:

+```rust,ignore
+#[attr]
+#[attr(true)]
+#[attr(ident)]
+#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
+#[attr(100)]
+#[attr(enabled = true)]
+#[enabled(true)]
+#[attr("hello")]
+#[repr(C, align = 4)]
+#[repr(C, align(4))]
+```
```rust,ignore
#[attr]
#[attr(true)]
#[attr(ident)]
#[attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))]
#[attr(100)]
#[attr(enabled = true)]
#[enabled(true)]
#[attr("hello")]
#[repr(C, align = 4)]
#[repr(C, align(4))]
```

0 comments on commit a82ffa4

Please sign in to comment.