Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/DoubleQuoteString.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down