Skip to content

Commit c8403ea

Browse files
authored
Unrolled build for #150871
Rollup merge of #150871 - simplify-partialord-doc, r=jhpratt Use f64 NaN in documentation instead of sqrt(-1.0)
2 parents ad04f76 + fb296d7 commit c8403ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ pub macro Ord($item:item) {
11901190
/// every `a`. This isn't always the case for types that implement `PartialOrd`, for example:
11911191
///
11921192
/// ```
1193-
/// let a = f64::sqrt(-1.0);
1193+
/// let a = f64::NAN;
11941194
/// assert_eq!(a <= a, false);
11951195
/// ```
11961196
///

0 commit comments

Comments
 (0)