mirror of https://github.com/rust-lang/book
Handle BoxListBullet
This commit is contained in:
parent
d1d0af3c08
commit
568562e065
|
@ -388,15 +388,14 @@ have. Relying on integer overflow’s wrapping behavior is considered an error.
|
|||
> To explicitly handle the possibility of overflow, you can use these families
|
||||
of methods provided by the standard library for primitive numeric types:
|
||||
|
||||
|
||||
Unmatched: BoxListBullet
|
||||
|
||||
Unmatched: BoxListBullet
|
||||
|
||||
Unmatched: BoxListBullet
|
||||
|
||||
Unmatched: BoxListBullet
|
||||
#### Floating-Point Types
|
||||
> * Wrap in all modes with the `wrapping_*` methods, such as `wrapping_add`.
|
||||
> * Return the `None` value if there is overflow with the `checked_*` methods.
|
||||
> * Return the value and a boolean indicating whether there was overflow with
|
||||
the `overflowing_*` methods.
|
||||
> * Saturate at the value’s minimum or maximum values with the `saturating_*`
|
||||
methods.
|
||||
>
|
||||
#### Floating-Point Types
|
||||
|
||||
Rust also has two primitive types for *floating-point numbers*, which are
|
||||
numbers with decimal points. Rust’s floating-point types are `f32` and `f64`,
|
||||
|
|
|
@ -97,6 +97,15 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BoxListBullet']]">
|
||||
<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 != 'BoxListBullet']]">
|
||||
<xsl:text>> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BulletC' or @w:val = 'ListPlainC']]">
|
||||
<xsl:text>* </xsl:text>
|
||||
<xsl:apply-templates select="*" />
|
||||
|
|
Loading…
Reference in New Issue