hare

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

commit bd3595c9b713b7a1ece492705a6ed8ad71028bea
parent 1f37a12bc86cd362eea39dea5ab321751f52b224
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue,  9 May 2023 21:59:07 -0400

types::c: fix typo

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mtypes/c/strings.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/types/c/strings.ha b/types/c/strings.ha @@ -23,7 +23,7 @@ export fn tostr_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, return [[encoding::utf8::invalid.]] +// UTF-8, return [[encoding::utf8::invalid]]. export fn tostr(cstr: *const char) (const str | utf8::invalid) = { let s = tostr_unsafe(cstr); return if (utf8::valid(s)) s else utf8::invalid;