diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-18 01:04:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-18 01:07:02 -0700 |
| commit | 19260b043b84dd44e2be26a66771ad621dbf1a59 (patch) | |
| tree | c94f1f83c11a97dfe874e50f63124f51b1ebc08d /src/liballoc | |
| parent | 410d70b5af30a4e5d566b981c9bf1b10b12b796b (diff) | |
| download | rust-19260b043b84dd44e2be26a66771ad621dbf1a59.tar.gz rust-19260b043b84dd44e2be26a66771ad621dbf1a59.zip | |
rustdoc: Fix testing indented code blocks
The collapse/unindent passes were run in the wrong order, generating different markdown for indented tests.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/owned.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/liballoc/owned.rs b/src/liballoc/owned.rs index 9377c968272..fa7a8df5035 100644 --- a/src/liballoc/owned.rs +++ b/src/liballoc/owned.rs @@ -25,8 +25,12 @@ use core::result::{Ok, Err, Result}; /// /// The following two examples are equivalent: /// -/// let foo = box(HEAP) Bar::new(...); -/// let foo = box Bar::new(...); +/// use std::owned::HEAP; +/// +/// # struct Bar; +/// # impl Bar { fn new(_a: int) { } } +/// let foo = box(HEAP) Bar::new(2); +/// let foo = box Bar::new(2); #[lang="exchange_heap"] pub static HEAP: () = (); |
