diff --git a/nostarch/chapter03.md b/nostarch/chapter03.md index 60b4281cb..ad98c5794 100644 --- a/nostarch/chapter03.md +++ b/nostarch/chapter03.md @@ -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`, diff --git a/tools/docx-to-md.xsl b/tools/docx-to-md.xsl index 5a277e7ae..6008f652f 100644 --- a/tools/docx-to-md.xsl +++ b/tools/docx-to-md.xsl @@ -97,6 +97,15 @@ + + > * + + + + > + + + *