From be30e2f11ebc94fb8a78abe61a5d5531c38805b7 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 14 Feb 2025 15:31:39 +0900 Subject: [PATCH] cmd/fsu: revert offset in error message Signed-off-by: Ophestra --- cmd/fsu/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fsu/parse.go b/cmd/fsu/parse.go index d029835..5ed53f5 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) }