Fix doctest errors in rustdoc comments

Mostly this disables doctest for comments that are not actually tests.
This commit is contained in:
Matt Brubeck 2014-09-17 14:05:21 -07:00
parent 787a683365
commit a939cc50bb
5 changed files with 15 additions and 12 deletions

View file

@ -109,14 +109,17 @@ pub struct InlineFragmentsConstructionResult {
/// Represents an {ib} split that has not yet found the containing block that it belongs to. This
/// is somewhat tricky. An example may be helpful. For this DOM fragment:
///
/// ```html
/// <span>
/// A
/// <div>B</div>
/// C
/// </span>
/// ```
///
/// The resulting `ConstructionItem` for the outer `span` will be:
///
/// ```ignore
/// InlineFragmentsConstructionItem(Some(~[
/// InlineBlockSplit {
/// predecessor_fragments: ~[
@ -128,6 +131,7 @@ pub struct InlineFragmentsConstructionResult {
/// }),~[
/// C
/// ])
/// ```
pub struct InlineBlockSplit {
/// The inline fragments that precede the flow.
pub predecessors: InlineFragments,