diff options
author | Brian Wignall <brianwignall@gmail.com> | 2019-10-22 14:20:05 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-10-25 09:03:04 -0400 |
commit | 4c7d45d16f9b0ce3cee61274897730f65a5ee569 (patch) | |
tree | d79f771dd4ad1c564912bddd84ba8422cd018ac7 | |
parent | 082989268ae5507d260c425cd84707e0e32ce4c1 (diff) | |
download | haskell-4c7d45d16f9b0ce3cee61274897730f65a5ee569.tar.gz |
Make documentation for byteSwap16 consistent with byteSwap32 (impl is same, with s/16/32)
-rw-r--r-- | libraries/base/GHC/Word.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/Word.hs b/libraries/base/GHC/Word.hs index b19e6a3bed..d68fd464b9 100644 --- a/libraries/base/GHC/Word.hs +++ b/libraries/base/GHC/Word.hs @@ -405,7 +405,7 @@ instance FiniteBits Word16 where countLeadingZeros (W16# x#) = I# (word2Int# (clz16# x#)) countTrailingZeros (W16# x#) = I# (word2Int# (ctz16# x#)) --- | Swap bytes in 'Word16'. +-- | Reverse order of bytes in 'Word16'. -- -- @since 4.7.0.0 byteSwap16 :: Word16 -> Word16 |