We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6da121 + 56295f9 commit c2c71a2Copy full SHA for c2c71a2
theories/Data/Char.v
@@ -64,7 +64,7 @@ Definition digit2ascii (n:nat) : Ascii.ascii :=
64
| 7 => "7"
65
| 8 => "8"
66
| 9 => "9"
67
- | n => ascii_of_nat (n - 9 + nat_of_ascii "A")
+ | n => ascii_of_nat (n - 10 + nat_of_ascii "A")
68
end%char.
69
70
Definition chr_newline : ascii :=
theories/Data/String.v
@@ -90,7 +90,7 @@ Section Program_Scope.
90
| true => fun _ => String (digit2ascii n) EmptyString
91
| false => fun pf =>
92
let m := NPeano.div n mod in
93
- append (nat2string m) (String (digit2ascii (n - 10 * m)) EmptyString)
+ append (nat2string m) (String (digit2ascii (n - mod * m)) EmptyString)
94
end eq_refl.
95
Next Obligation.
96
eapply NPeano.Nat.div_lt; auto.
0 commit comments