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:
parent
bc67ea4f8f
commit
9d20756dde
@ -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++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user