initial commits

master
Charles Iliya Krempeaux 2023-11-24 05:27:10 -08:00
parent 16a0c78958
commit 7d47a22a89
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ func Parse(fn func(rune)error, runescanner io.RuneScanner) error {
if expected != actual {
err := runescanner.UnreadRune()
if nil != err {
return errProblemUnreadingCharacterNumber(nextRead, err, r)
characterNumber := nextRead - 1
return errProblemUnreadingCharacterNumber(characterNumber, err, r)
}
return erorr.Errorf("brace: expected first character of brace-string literal to be a %q (%U), but actually was %q (%U)", expected, expected, actual, actual)