Skip to content

Commit 7f3e411

Browse files
committed
Fix doc mentioning encodeToBuilder (fixes #612)
[ci skip]
1 parent 83ae4f9 commit 7f3e411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/Aeson/Text.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ encodeToLazyText = LT.decodeUtf8 . encodingToLazyByteString . toEncoding
4646
-- embedded efficiently in a text-based protocol.
4747
--
4848
-- If you are going to immediately encode straight to a
49-
-- 'L.ByteString', it is more efficient to use 'encodeToBuilder'
50-
-- instead.
49+
-- 'L.ByteString', it is more efficient to use 'encode' (lazy ByteString)
50+
-- or @'fromEncoding' . 'toEncoding'@ (ByteString.Builder) instead.
5151
--
5252
-- /Note:/ Uses 'toJSON'
5353
encodeToTextBuilder :: ToJSON a => a -> Builder

0 commit comments

Comments
 (0)