summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-03-26 04:11:47 -0400
committerAndreas Klebinger <klebinger.andreas@gmx.at>2020-03-26 04:11:47 -0400
commite9e4588872aaab57dc199cb789768efb13edb997 (patch)
treed97ab348881e043efc54af61e06491aa061000e5
parent0fcb2a0adcdf0140170f050af2d3e865bd4e8fe6 (diff)
downloadhaskell-wip/andreask/bits_docs.tar.gz
Apply suggestion to libraries/base/Data/Bits.hswip/andreask/bits_docs
-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.