Skip to content

Commit 88a926a

Browse files
authored
Merge pull request #6 from Melosity/lorcanmcdonal-update-doc-comment
Clarify how to produce hex representation
2 parents 63b7ff1 + 7f6a627 commit 88a926a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Data/Digest/Pure/MD5.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ h2 = 0x98BADCFE
9292
h3 = 0x10325476
9393

9494
-- | Processes a lazy ByteString and returns the md5 digest.
95-
-- This is probably what you want.
95+
-- This is probably what you want. You can use 'show' to produce the standard hex
96+
-- representation.
9697
md5 :: L.ByteString -> MD5Digest
9798
md5 = hash
9899

@@ -259,7 +260,7 @@ getNthWord n = right . G.runGet G.getWord32le . B.drop (n * sizeOf (undefined ::
259260
-- | The raw bytes of an 'MD5Digest'. It is always 16 bytes long.
260261
--
261262
-- You can also use the 'Binary' or 'S.Serialize' instances to output the raw
262-
-- bytes. Alternatively you can use 'show' to prodce the standard hex
263+
-- bytes. Alternatively you can use 'show' to produce the standard hex
263264
-- representation.
264265
--
265266
md5DigestBytes :: MD5Digest -> B.ByteString

0 commit comments

Comments
 (0)