summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/base/Data/Bits.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Data/Bits.hs b/libraries/base/Data/Bits.hs
index 6379f208a8..7c50ced028 100644
--- a/libraries/base/Data/Bits.hs
+++ b/libraries/base/Data/Bits.hs
@@ -168,7 +168,7 @@ class Eq a => Bits a where
-- | @x \`complementBit\` i@ is the same as @x \`xor\` bit i@
complementBit :: a -> Int -> a
- {-| @x \`testBit\` i@ is the same as @x .&. bit n == 1@
+ {-| @x \`testBit\` i@ is the same as @x .&. bit n /= 0@
In other words it returns True if the bit at offset @n
is set.