diff options
| author | bors <bors@rust-lang.org> | 2017-10-27 11:16:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-27 11:16:27 +0000 |
| commit | f7b080b38e931e9a4b9e724c69f579df326903cb (patch) | |
| tree | 43c1cce68a39e77273aad6427f07a88a1340698e | |
| parent | 51456a68085be6c4035dae0282ee83b419a4f00c (diff) | |
| parent | a82ffa490cb0eb776db445a33621e84425ea2103 (diff) | |
Auto merge of #45531 - steveklabnik:fix-unstable-book-formatting, r=kennytm
Fix formatting in unstable book's attr-literals section
| -rw-r--r-- | src/doc/unstable-book/src/language-features/attr-literals.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/doc/unstable-book/src/language-features/attr-literals.md b/src/doc/unstable-book/src/language-features/attr-literals.md index 60741a74400..6606f3c4e5c 100644 --- a/src/doc/unstable-book/src/language-features/attr-literals.md +++ b/src/doc/unstable-book/src/language-features/attr-literals.md @@ -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))] +``` |
