i256: Fix logical errors in doc comments for is_negative and is_zero (#2218)

This commit is contained in:
harpocryptes 2023-03-05 21:19:12 +01:00 committed by GitHub
parent 89b23647f1
commit 72428503cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -265,13 +265,13 @@ impl I256 {
}
/// Returns `true` if `self` is negative and `false` if the number is zero
/// or negative.
/// or positive.
#[inline(always)]
pub const fn is_negative(self) -> bool {
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.
#[inline(always)]
pub const fn is_zero(self) -> bool {