Skip to content

Commit 4e0d659

Browse files
authored
add /// #![feature(f16)]
1 parent 965c080 commit 4e0d659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/f16.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ impl f16 {
328328
/// # Examples
329329
///
330330
/// ```
331+
/// #![feature(f16)]
332+
///
331333
/// let x = 2.0_f16;
332334
/// let abs_difference = (x.powi(2) - (x * x)).abs();
333335
/// assert!(abs_difference < f16::EPSILON);

0 commit comments

Comments
 (0)