diff options
| author | est31 <MTest31@outlook.com> | 2017-01-24 21:28:12 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-04-18 02:43:16 +0200 |
| commit | 56760abf3b0202a74fcfb1b62bc53cfbddd8259c (patch) | |
| tree | 9bf31a802b4d89ffbf5d79dcbef33a5ff65a6df1 /src/libstd | |
| parent | 82eead0d0b687c79cc79029e45325aecd9c9ef73 (diff) | |
| download | rust-56760abf3b0202a74fcfb1b62bc53cfbddd8259c.tar.gz rust-56760abf3b0202a74fcfb1b62bc53cfbddd8259c.zip | |
Add examples heading
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/f32.rs | 4 | ||||
| -rw-r--r-- | src/libstd/f64.rs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index ec0547662cc..5ec01e2e215 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -1234,6 +1234,8 @@ impl f32 { /// /// Note that this function is distinct from casting. /// + /// # Examples + /// /// ``` /// #![feature(float_bits_conv)] /// assert!((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting! @@ -1257,6 +1259,8 @@ impl f32 { /// Returns `Err(())` if the representation of a signaling NaN "sNaN" /// float, is passed to the function. /// + /// # Examples + /// /// ``` /// #![feature(float_bits_conv)] /// use std::f32; diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index 456ea9c1411..96d38f67ee2 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -1126,6 +1126,8 @@ impl f64 { /// /// Note that this function is distinct from casting. /// + /// # Examples + /// /// ``` /// #![feature(float_bits_conv)] /// assert!((1f64).to_bits() != 1f64 as u64); // to_bits() is not casting! @@ -1149,6 +1151,8 @@ impl f64 { /// Returns `Err(())` if the representation of a signaling NaN "sNaN" /// float, is passed to the function. /// + /// # Examples + /// /// ``` /// #![feature(float_bits_conv)] /// use std::f64; |
