aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-14 15:31:39 +0900
committerOphestra <cat@gensokyo.uk>2025-02-14 15:31:39 +0900
commitbe30e2f11ebc94fb8a78abe61a5d5531c38805b7 (patch)
treef5bf2f449943e1a2e0e5d6307f82520b8eebe7cd
parentaaebb8f3abc10b4ef24a75a379db2e6fc91e68dc (diff)
cmd/fsu: revert offset in error message
Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--cmd/fsu/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fsu/parse.go b/cmd/fsu/parse.go
index d0298357..5ed53f5f 100644
--- a/cmd/fsu/parse.go
+++ b/cmd/fsu/parse.go
@@ -23,7 +23,7 @@ func parseUint32Fast(s string) (int, error) {
for i, ch := range []byte(s) {
ch -= '0'
if ch > 9 {
- return -1, fmt.Errorf("invalid character '%s' at index %d", string([]byte{ch}), i)
+ return -1, fmt.Errorf("invalid character '%s' at index %d", string(ch+'0'), i)
}
n = n*10 + int(ch)
}