File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1234,6 +1234,8 @@ impl f32 {
12341234 ///
12351235 /// Note that this function is distinct from casting.
12361236 ///
1237+ /// # Examples
1238+ ///
12371239 /// ```
12381240 /// #![feature(float_bits_conv)]
12391241 /// assert!((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting!
@@ -1257,6 +1259,8 @@ impl f32 {
12571259 /// Returns `Err(())` if the representation of a signaling NaN "sNaN"
12581260 /// float, is passed to the function.
12591261 ///
1262+ /// # Examples
1263+ ///
12601264 /// ```
12611265 /// #![feature(float_bits_conv)]
12621266 /// use std::f32;
Original file line number Diff line number Diff line change @@ -1126,6 +1126,8 @@ impl f64 {
11261126 ///
11271127 /// Note that this function is distinct from casting.
11281128 ///
1129+ /// # Examples
1130+ ///
11291131 /// ```
11301132 /// #![feature(float_bits_conv)]
11311133 /// assert!((1f64).to_bits() != 1f64 as u64); // to_bits() is not casting!
@@ -1149,6 +1151,8 @@ impl f64 {
11491151 /// Returns `Err(())` if the representation of a signaling NaN "sNaN"
11501152 /// float, is passed to the function.
11511153 ///
1154+ /// # Examples
1155+ ///
11521156 /// ```
11531157 /// #![feature(float_bits_conv)]
11541158 /// use std::f64;
You can’t perform that action at this time.
0 commit comments