From 72428503cfb0855579d47f691b48b2d65ad8195b Mon Sep 17 00:00:00 2001 From: harpocryptes <95710073+harpocryptes@users.noreply.github.com> Date: Sun, 5 Mar 2023 21:19:12 +0100 Subject: [PATCH] i256: Fix logical errors in doc comments for is_negative and is_zero (#2218) --- ethers-core/src/types/i256.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers-core/src/types/i256.rs b/ethers-core/src/types/i256.rs index 72cc6032..c846bf9b 100644 --- a/ethers-core/src/types/i256.rs +++ b/ethers-core/src/types/i256.rs @@ -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 {