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

@ -845,6 +845,7 @@ If a sequence of such redirections form a cycle or cannot be resolved unambiguou
they represent a compile-time error.
An example of re-exporting:
~~~~
# fn main() { }
mod quux {
@ -868,6 +869,7 @@ All rules regarding accessing declared modules in `use` declarations applies to
and `extern mod` declarations.
An example of what will and will not work for `use` items:
~~~~
# #[allow(unused_imports)];
use foo::extra; // good: foo is at the root of the crate
@ -1184,6 +1186,7 @@ a = Cat;
~~~~
Enumeration constructors can have either named or unnamed fields:
~~~~
enum Animal {
Dog (~str, f64),