diff options
| author | Jacob Kiesel <kieseljake@gmail.com> | 2017-09-08 16:07:19 -0600 |
|---|---|---|
| committer | Jacob Kiesel <kieseljake@gmail.com> | 2017-09-08 16:07:19 -0600 |
| commit | 63f4dab0f5049bda995d043ac6c1bdd05a9865e6 (patch) | |
| tree | e75a84d4876d5286b95a04f1b3419656fd873537 /src/libstd | |
| parent | eafdad511ff46e82b3e4c1c60b6fa843a33ee0f4 (diff) | |
| download | rust-63f4dab0f5049bda995d043ac6c1bdd05a9865e6.tar.gz rust-63f4dab0f5049bda995d043ac6c1bdd05a9865e6.zip | |
Revert "Add NAN examples"
This reverts commit f74c5d2e18e50c24de2cc1192bf2088cdaa61916.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/f32.rs | 1 | ||||
| -rw-r--r-- | src/libstd/f64.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index cef53671e80..18bc27faa82 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -1089,7 +1089,6 @@ impl f32 { /// assert!((-3.0f32).clamp(-2.0f32, 1.0f32) == -2.0f32); /// assert!((0.0f32).clamp(-2.0f32, 1.0f32) == 0.0f32); /// assert!((2.0f32).clamp(-2.0f32, 1.0f32) == 1.0f32); - /// assert!((NAN).clamp(-2.0f32, 1.0f32) == NAN); /// ``` #[unstable(feature = "clamp", issue = "44095")] #[inline] diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index ab8f2cd2fdf..b04ba9eabdb 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -979,7 +979,6 @@ impl f64 { /// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64); /// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64); /// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64); - /// assert!((NAN).clamp(-2.0f64, 1.0f64) == NAN); /// ``` #[unstable(feature = "clamp", issue = "44095")] #[inline] |
