Skip to content

Commit 56295f9

Browse files
committed
digit2ascii function fixed
1 parent 0039176 commit 56295f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theories/Data/Char.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Definition digit2ascii (n:nat) : Ascii.ascii :=
6464
| 7 => "7"
6565
| 8 => "8"
6666
| 9 => "9"
67-
| n => ascii_of_nat (n - 9 + nat_of_ascii "A")
67+
| n => ascii_of_nat (n - 10 + nat_of_ascii "A")
6868
end%char.
6969

7070
Definition chr_newline : ascii :=

0 commit comments

Comments
 (0)