Skip to content

Commit ebb8fb1

Browse files
committed
[fix] fix the documentation for decode
- `decode` was ddocumented as taking a strict ByteString when taking a lazy one - fixes #1052
1 parent db36c30 commit ebb8fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Aeson/Decoding.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ throwDecodeStrict bs = unResult (toResultValue (bsToTokens bs)) (throwM . AesonE
5959
-- Decoding: lazy bytestring
6060
-------------------------------------------------------------------------------
6161

62-
-- | Efficiently deserialize a JSON value from a strict 'B.ByteString'.
62+
-- | Efficiently deserialize a JSON value from a lazy 'L.ByteString'.
6363
-- If this fails due to incomplete or invalid input, 'Nothing' is
6464
-- returned.
6565
decode :: (A.FromJSON a) => L.ByteString -> Maybe a

0 commit comments

Comments
 (0)