1
Fork 0

Fix formatting of some code blocks in pdf docs

Code blocks apparently need to be surrounded by whitespace to be output
correctly when generating pdfs
This commit is contained in:
Mick Koch 2014-01-03 13:17:19 -05:00
parent bae091e517
commit 5464d48e90
4 changed files with 18 additions and 0 deletions

View file

@ -278,6 +278,7 @@ return result + val;
This solves the indentation problem. But if we have a lot of chained matches
like this, we might prefer to write a single macro invocation. The input
pattern we want is clear:
~~~~
# macro_rules! b(
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
@ -304,6 +305,7 @@ input patterns:
( binds $( $bind_res:ident ),* )
# => (0))
~~~~
...and:
~~~~