Skip to content

Commit 7efb7ca

Browse files
committed
[search.go] minor error string formatting change
1 parent 21c5a0c commit 7efb7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func glyphSearch(arg string) (string, error) {
1616
// test to confirm that Unicode code point falls in range U+0020 = min printable glyph to utf8.MaxRune value
1717
ok := isIntInRange(int32(i))
1818
if !ok {
19-
errmsg := fmt.Errorf("Hexadecimal value '" + arg + "' was out of range.")
19+
errmsg := fmt.Errorf("hexadecimal value '%s' was out of range", arg)
2020
return "", errmsg
2121
}
2222
r := rune(i)

0 commit comments

Comments
 (0)