Fix Char-Ascii docs

This commit is contained in:
Ilan Godik 2015-09-20 00:45:09 +03:00
parent aba225c3f5
commit 56afb44034

View File

@ -7,7 +7,7 @@ import Prelude.List
import Prelude.Cast
import Builtins
||| Return the ASCII representation of the character.
||| Convert the number to its ASCII equivalent.
chr : Int -> Char
chr x = if (x >= 0 && x < 0x110000)
then assert_total (prim__intToChar x)
@ -16,7 +16,7 @@ chr x = if (x >= 0 && x < 0x110000)
instance Cast Int Char where
cast = chr
||| Convert the number to its ASCII equivalent.
||| Return the ASCII representation of the character.
ord : Char -> Int
ord x = prim__charToInt x