Skip to content

Commit

Permalink
Fix f16::midpoint const feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Dec 2, 2024
1 parent 3bff51e commit 72297d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/f16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ impl f16 {
/// ```
#[inline]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
pub const fn midpoint(self, other: f16) -> f16 {
const LO: f16 = f16::MIN_POSITIVE * 2.;
const HI: f16 = f16::MAX / 2.;
Expand Down

0 comments on commit 72297d4

Please sign in to comment.