Skip to content

Commit

Permalink
Add haddock for encodeUtf8/decodeUtf8
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Akentev committed Jun 2, 2021
1 parent f171b35 commit b484433
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plutus-tx/src/PlutusTx/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ greaterThanByteString :: ByteString -> ByteString -> Bool
greaterThanByteString = (>)

{-# NOINLINE decodeUtf8 #-}
-- | Converts a ByteString to a String.
decodeUtf8 :: ByteString -> String
decodeUtf8 = mustBeReplaced "decodeUtf8"

Expand Down Expand Up @@ -233,5 +234,6 @@ trace :: String -> ()
trace _ = () --mustBeReplaced "trace"

{-# NOINLINE encodeUtf8 #-}
-- | Convert a String into a ByteString.
encodeUtf8 :: String -> ByteString
encodeUtf8 = mustBeReplaced "encodeUtf8"

0 comments on commit b484433

Please sign in to comment.