@@ -147,23 +147,23 @@ impl f64 {
147147 /// [subnormal][subnormal], or `NaN`.
148148 ///
149149 /// ```
150- /// use std::f32 ;
150+ /// use std::f64 ;
151151 ///
152- /// let min = f32 ::MIN_POSITIVE; // 1.17549435e-38f64
153- /// let max = f32 ::MAX;
154- /// let lower_than_min = 1.0e-40_f32 ;
155- /// let zero = 0.0f32 ;
152+ /// let min = f64 ::MIN_POSITIVE; // 2.2250738585072014e-308f64
153+ /// let max = f64 ::MAX;
154+ /// let lower_than_min = 1.0e-308_f64 ;
155+ /// let zero = 0.0f64 ;
156156 ///
157157 /// assert!(min.is_normal());
158158 /// assert!(max.is_normal());
159159 ///
160160 /// assert!(!zero.is_normal());
161- /// assert!(!f32 ::NAN.is_normal());
162- /// assert!(!f32 ::INFINITY.is_normal());
161+ /// assert!(!f64 ::NAN.is_normal());
162+ /// assert!(!f64 ::INFINITY.is_normal());
163163 /// // Values between `0` and `min` are Subnormal.
164164 /// assert!(!lower_than_min.is_normal());
165165 /// ```
166- /// [subnormal]: http ://en.wikipedia.org/wiki/Denormal_number
166+ /// [subnormal]: https ://en.wikipedia.org/wiki/Denormal_number
167167 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
168168 #[ inline]
169169 pub fn is_normal ( self ) -> bool { num:: Float :: is_normal ( self ) }
@@ -655,9 +655,9 @@ impl f64 {
655655 /// ```
656656 /// #![feature(float_extras)]
657657 ///
658- /// let x = 1.0f32 ;
658+ /// let x = 1.0f64 ;
659659 ///
660- /// let abs_diff = (x.next_after(2.0) - 1.00000011920928955078125_f32 ).abs();
660+ /// let abs_diff = (x.next_after(2.0) - 1.0000000000000002220446049250313_f64 ).abs();
661661 ///
662662 /// assert!(abs_diff < 1e-10);
663663 /// ```
0 commit comments