mirror of https://github.com/rust-lang/book
Fix ListPlain
This commit is contained in:
parent
365f11bfb8
commit
03cd731b27
|
@ -208,19 +208,16 @@ A `Message` enum whose variants each store different amounts and types of values
|
|||
|
||||
This enum has four variants with different types:
|
||||
|
||||
* `Quit` has no data associated with it at all.
|
||||
* `Move` has named fields, like a struct does.
|
||||
* `Write` includes a single `String`.
|
||||
* `ChangeColor` includes three `i32` values.
|
||||
|
||||
Unmatched: ListPlain
|
||||
|
||||
Unmatched: ListPlain
|
||||
|
||||
Unmatched: ListPlain
|
||||
|
||||
Unmatched: ListPlain
|
||||
Defining an enum with variants such as the ones in Listing 6-2 is similar
|
||||
to defining different kinds of struct definitions, except the enum doesn’t use
|
||||
the `struct` keyword and all the variants are grouped together under the
|
||||
`Message` type. The following structs could hold the same data that the
|
||||
preceding enum variants hold:
|
||||
Defining an enum with variants such as the ones in Listing 6-2 is similar to
|
||||
defining different kinds of struct definitions, except the enum doesn’t use the
|
||||
`struct` keyword and all the variants are grouped together under the `Message`
|
||||
type. The following structs could hold the same data that the preceding enum
|
||||
variants hold:
|
||||
|
||||
```
|
||||
struct QuitMessage; // unit struct
|
||||
|
|
|
@ -89,11 +89,11 @@
|
|||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BulletA' or @w:val = 'BulletB' or @w:val = 'ListPlainA' or @w:val = 'ListPlainB' or @w:val = 'ListBullet']]">
|
||||
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BulletA' or @w:val = 'BulletB' or @w:val = 'ListPlainA' or @w:val = 'ListPlainB' or @w:val = 'ListBullet' or @w:val = 'ListPlain']]">
|
||||
<xsl:text>* </xsl:text>
|
||||
<xsl:apply-templates select="*" />
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:if test="not(following-sibling::*[1][self::w:p]) or following-sibling::w:p[1][w:pPr/w:pStyle[@w:val != 'BulletA' and @w:val != 'BulletB' and @w:val != 'ListPlainA' and @w:val != 'ListPlainB' and @w:val != 'ListBullet']]">
|
||||
<xsl:if test="not(following-sibling::*[1][self::w:p]) or following-sibling::w:p[1][w:pPr/w:pStyle[@w:val != 'BulletA' and @w:val != 'BulletB' and @w:val != 'ListPlainA' and @w:val != 'ListPlainB' and @w:val != 'ListBullet' and @w:val != 'ListPlain']]">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
|
Loading…
Reference in New Issue