i256: Fix logical errors in doc comments for is_negative and is_zero (#2218)
This commit is contained in:
parent
89b23647f1
commit
72428503cf
|
@ -265,13 +265,13 @@ impl I256 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns `true` if `self` is negative and `false` if the number is zero
|
/// Returns `true` if `self` is negative and `false` if the number is zero
|
||||||
/// or negative.
|
/// or positive.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub const fn is_negative(self) -> bool {
|
pub const fn is_negative(self) -> bool {
|
||||||
self.signum64().is_negative()
|
self.signum64().is_negative()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns `true` if `self` is negative and `false` if the number is zero
|
/// Returns `true` if `self` is zero and `false` if the number is negative
|
||||||
/// or positive.
|
/// or positive.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub const fn is_zero(self) -> bool {
|
pub const fn is_zero(self) -> bool {
|
||||||
|
|
Loading…
Reference in New Issue