From a939cc50bb5c8f97651a493067a78bc62f887ea8 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 17 Sep 2014 14:05:21 -0700 Subject: Fix doctest errors in rustdoc comments Mostly this disables doctest for comments that are not actually tests. --- components/layout/construct.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/layout/construct.rs') diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 163aa338b47..81910a2d915 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -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 /// /// A ///
B
/// C ///
+/// ``` /// /// 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, -- cgit v1.2.3