[Git][ghc/ghc][wip/andreask/bits_docs] Apply suggestion to libraries/base/Data/Bits.hs

Andreas Klebinger gitlab at gitlab.haskell.org
Thu Mar 26 08:12:11 UTC 2020



Andreas Klebinger pushed to branch wip/andreask/bits_docs at Glasgow Haskell Compiler / GHC


Commits:
e9e45888 by Andreas Klebinger at 2020-03-26T04:11:47-04:00
Apply suggestion to libraries/base/Data/Bits.hs
- - - - -


1 changed file:

- libraries/base/Data/Bits.hs


Changes:

=====================================
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.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e9e4588872aaab57dc199cb789768efb13edb997

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e9e4588872aaab57dc199cb789768efb13edb997
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200326/cd4054d7/attachment.html>


More information about the ghc-commits mailing list