From 6b1a3941b3ee84f37738aaa60243153742f4b535 Mon Sep 17 00:00:00 2001 From: Michael Lip <51033404+theluckystrike@users.noreply.github.com> Date: Sun, 20 Sep 2026 14:12:12 +0700 Subject: [PATCH] docs fix the fromCode range description --- src/Char.gren | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Char.gren b/src/Char.gren index 65dac66d..7e903abc 100644 --- a/src/Char.gren +++ b/src/Char.gren @@ -279,13 +279,10 @@ toCode = fromCode 0x0001F603 == '😃' - fromCode -1 == '�' - -The full range of unicode is from `0` to `0x10FFFF`. With numbers outside that -range, you get [the replacement character][fffd]. +The full range of unicode is from `0` to `0x10FFFF`. Numbers outside that +range throw a `RangeError`. [cp]: https://en.wikipedia.org/wiki/Code_point -[fffd]: https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character -} fromCode : Int -> Char