Skip to content

Commit db36c30

Browse files
authored
Merge pull request #1056 from tillydray/tilly/update-eitherDecode-docs
Fix typo
2 parents 274b562 + 5106fa8 commit db36c30

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
@@ -69,7 +69,7 @@ decode bs = unResult (toResultValue (lbsToTokens bs)) (\_ -> Nothing) $ \v bs' -
6969
| otherwise -> Nothing
7070
A.IError _ _ -> Nothing
7171

72-
-- | Like 'decodeStrict' but returns an error message when decoding fails.
72+
-- | Like 'decode' but returns an error message when decoding fails.
7373
eitherDecode :: (A.FromJSON a) => L.ByteString -> Either String a
7474
eitherDecode bs = unResult (toResultValue (lbsToTokens bs)) Left $ \v bs' -> case A.ifromJSON v of
7575
A.ISuccess x

0 commit comments

Comments
 (0)