mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Fix doctest errors in rustdoc comments
Mostly this disables doctest for comments that are not actually tests.
This commit is contained in:
parent
787a683365
commit
a939cc50bb
5 changed files with 15 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue