Skip to content

Commit f9f006d

Browse files
committed
f16::is_sign_{positive,negative} were feature-gated on f128
1 parent 6a2e422 commit f9f006d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/num/f16.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl f16 {
226226
/// See [explanation of NaN as a special value](f32) for more info.
227227
#[inline]
228228
#[must_use]
229-
#[unstable(feature = "f128", issue = "116909")]
229+
#[unstable(feature = "f16", issue = "116909")]
230230
pub fn is_sign_positive(self) -> bool {
231231
!self.is_sign_negative()
232232
}
@@ -239,7 +239,7 @@ impl f16 {
239239
/// See [explanation of NaN as a special value](f32) for more info.
240240
#[inline]
241241
#[must_use]
242-
#[unstable(feature = "f128", issue = "116909")]
242+
#[unstable(feature = "f16", issue = "116909")]
243243
pub fn is_sign_negative(self) -> bool {
244244
// IEEE754 says: isSignMinus(x) is true if and only if x has negative sign. isSignMinus
245245
// applies to zeros and NaNs as well.

0 commit comments

Comments
 (0)