From 193433e7decd7dde7d7689d979c4a6a7e7bed7c6 Mon Sep 17 00:00:00 2001 From: Aaron Janse Date: Mon, 1 Jul 2019 01:48:33 +0000 Subject: [PATCH] fix codeToChar in DoubleQuoteString.elm --- examples/DoubleQuoteString.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/DoubleQuoteString.elm b/examples/DoubleQuoteString.elm index 31ac621..03f2082 100644 --- a/examples/DoubleQuoteString.elm +++ b/examples/DoubleQuoteString.elm @@ -67,7 +67,7 @@ codeToChar str = length = String.length str code = String.foldl addHex 0 str in - if 4 <= length && length <= 6 then + if length < 4 || length > 6 then problem "code point must have between 4 and 6 digits" else if 0 <= code && code <= 0x10FFFF then succeed (Char.fromCode code)