on master help sign in
Changed ASCII to Unicode in Prelude.Chars documentation.
717e854Kyarigwo
libs/prelude/Prelude/Chars.idr+2−2
@@ -9,7 +9,7 @@ import Builtins
9
9
10%access public export
10%access public export
11
11
12−||| Convert the number to its ASCII equivalent.
12+||| Convert the number to its Unicode equivalent.
13chr : Int -> Char
13chr : Int -> Char
14chr x = if (x >= 0 && x < 0x110000)
14chr x = if (x >= 0 && x < 0x110000)
15 then assert_total (prim__intToChar x)
15 then assert_total (prim__intToChar x)
@@ -18,7 +18,7 @@ chr x = if (x >= 0 && x < 0x110000)
18Cast Int Char where
18Cast Int Char where
19 cast = chr
19 cast = chr
20
20
21−||| Return the ASCII representation of the character.
21+||| Return the Unicode representation of the character.
22ord : Char -> Int
22ord : Char -> Int
23ord x = prim__charToInt x
23ord x = prim__charToInt x
24
24