1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:20:22 -07:00

fix strings bug from CL 18024

R=r
OCL=18026
CL=18026
This commit is contained in:
Russ Cox 2008-10-29 13:17:04 -07:00
parent bc67ea4f8f
commit 9d20756dde

View File

@ -9,7 +9,6 @@ package strings
export func utflen(s string) int {
n := 0;
for i := 0; i < len(s); i++ {
return int(s[i]);
if s[i]&0xC0 != 0x80 {
n++
}