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 {
1234
1234
///
1235
1235
/// Note that this function is distinct from casting.
1236
1236
///
1237
+ /// # Examples
1238
+ ///
1237
1239
/// ```
1238
1240
/// #![feature(float_bits_conv)]
1239
1241
/// assert!((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting!
@@ -1257,6 +1259,8 @@ impl f32 {
1257
1259
/// Returns `Err(())` if the representation of a signaling NaN "sNaN"
1258
1260
/// float, is passed to the function.
1259
1261
///
1262
+ /// # Examples
1263
+ ///
1260
1264
/// ```
1261
1265
/// #![feature(float_bits_conv)]
1262
1266
/// use std::f32;
Original file line number Diff line number Diff line change @@ -1126,6 +1126,8 @@ impl f64 {
1126
1126
///
1127
1127
/// Note that this function is distinct from casting.
1128
1128
///
1129
+ /// # Examples
1130
+ ///
1129
1131
/// ```
1130
1132
/// #![feature(float_bits_conv)]
1131
1133
/// assert!((1f64).to_bits() != 1f64 as u64); // to_bits() is not casting!
@@ -1149,6 +1151,8 @@ impl f64 {
1149
1151
/// Returns `Err(())` if the representation of a signaling NaN "sNaN"
1150
1152
/// float, is passed to the function.
1151
1153
///
1154
+ /// # Examples
1155
+ ///
1152
1156
/// ```
1153
1157
/// #![feature(float_bits_conv)]
1154
1158
/// use std::f64;
You can’t perform that action at this time.
0 commit comments