Skip to content

Commit e419bb6

Browse files
committed
Update example
1 parent eaa6692 commit e419bb6

File tree

1 file changed

+2
-3
lines changed
  • examples/singleapp/utf8_byte_count

1 file changed

+2
-3
lines changed

examples/singleapp/utf8_byte_count/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ func manual(s string) error {
106106
}
107107

108108
func useRune(s string) error {
109-
//lint:ignore S1029 It's ok because this is just a example.
110-
//lint:ignore SA6003 It's ok because this is just a example.
111-
for _, r := range []rune(s) {
109+
110+
for _, r := range s {
112111
l := utf8.RuneLen(r)
113112
if l == -1 {
114113
return fmt.Errorf("invalid utf-8 char (%c)", r)

0 commit comments

Comments
 (0)