Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
faldor20 committed Apr 10, 2024
1 parent 59209c7 commit 843fbc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/Core.roc
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,8 @@ crashOnBadUtf8Error = \res ->

nullChars = "null" |> Str.toUtf8

## Returns Ok if the input is "null" or Err otherwise
## Returns `Null` if the input starts with "null"
## If makeNullEmpty is true Null{bytes} will be empty
nullToEmpty : List U8, Bool -> [Null _, NotNull]
nullToEmpty = \bytes, makeNullEmpty ->
when bytes is
Expand Down

0 comments on commit 843fbc5

Please sign in to comment.