hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 3dff5c250c5a8574a76b6b2c666162d9f2ff6e3e
parent 90f29aff6a24db536b39fcd4b1796eb336782596
Author: Evan Johnston <evan@d2evs.net>
Date:   Sun, 12 Feb 2023 18:41:55 -0500

strings::fromc: update documentation about invalid utf8

Signed-off-by: Evan Johnston <evan@d2evs.net>

Diffstat:
Mstrings/cstrings.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strings/cstrings.ha b/strings/cstrings.ha @@ -27,7 +27,7 @@ export fn fromc_unsafe(cstr: *const char) const str = { }; // Converts a C string to a Hare string in O(n). If the string is not valid -// UTF-8, abort. +// UTF-8, return [[encoding::utf8::invalid.]] export fn fromc(cstr: *const char) (const str | utf8::invalid) = { let s = fromc_unsafe(cstr); return if (utf8::valid(s)) s else utf8::invalid;