From 843fbc57f3343ea7fb181c8932eb2cd0e8c8cc0f Mon Sep 17 00:00:00 2001 From: faldor20 Date: Thu, 11 Apr 2024 01:01:54 +1000 Subject: [PATCH] fix comment --- package/Core.roc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/Core.roc b/package/Core.roc index 1952131..a92548c 100644 --- a/package/Core.roc +++ b/package/Core.roc @@ -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