Skip to content

Commit

Permalink
Update Data/ByteString.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Craven <[email protected]>
  • Loading branch information
Bodigrim and clyring authored Sep 15, 2023
1 parent 9e6c00c commit 2f52feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ByteString.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ useAsCString (BS fp l) action =
-- As for 'useAsCString' this function makes a copy of the original @ByteString@.
-- It must not be stored or used after the subcomputation finishes.
--
-- Beware that this function does not add a terminating @\NUL@ byte at the end of 'CStringLen'.
-- Beware that this function is not required to add a terminating @\NUL@ byte at the end of the 'CStringLen' it provides.
-- If you need to construct a pointer to a null-terminated sequence, use 'useAsCString'
-- (and measure length independently if desired).
useAsCStringLen :: ByteString -> (CStringLen -> IO a) -> IO a
Expand Down

0 comments on commit 2f52feb

Please sign in to comment.