File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
244244 /// Returns `true` if the number is [subnormal].
245245 ///
246246 /// ```
247+ /// use num_traits::float::FloatCore;
248+ /// use std::f64;
249+ ///
247250 /// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64
248251 /// let max = f64::MAX;
249252 /// let lower_than_min = 1.0e-308_f64;
@@ -1157,6 +1160,9 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
11571160 /// Returns `true` if the number is [subnormal].
11581161 ///
11591162 /// ```
1163+ /// use num_traits::Float;
1164+ /// use std::f64;
1165+ ///
11601166 /// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64
11611167 /// let max = f64::MAX;
11621168 /// let lower_than_min = 1.0e-308_f64;
You can’t perform that action at this time.
0 commit comments