diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-12-26 14:09:32 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-12-26 14:09:32 +0100 |
commit | 25013841d2c28eca33a8a1f94a33babad36d80aa (patch) | |
tree | e0353773dda7c7880271d878a06161059e70b8c5 /conf | |
parent | 7ae918084e0a38041565d28b904515dc7695e66b (diff) |
Fix "go vet" issue
Diffstat (limited to 'conf')
-rw-r--r-- | conf/scanner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/scanner.go b/conf/scanner.go index 9bd7a4b..fd9868a 100644 --- a/conf/scanner.go +++ b/conf/scanner.go @@ -61,7 +61,7 @@ func (s *scanner) Scan() (token, error) { r, rlen := utf8.DecodeRune(s.data[s.offset+processed:]) if r == utf8.RuneError { if rlen == 1 { - return token{}, fmt.Errorf("found invalid UTF8 at offset %d, before: %s", s.offset, s.data[s.offset]) + return token{}, fmt.Errorf("found invalid UTF8 at offset %d, before: %s", s.offset, string(s.data[s.offset])) } else if rlen == 0 { return token{}, io.EOF } |