utf8s.Len()

master
Charles Iliya Krempeaux 2018-07-02 11:11:03 -07:00
parent 751302c4d8
commit 30f941be7e
1 changed files with 1 additions and 1 deletions

2
len.go
View File

@ -4,7 +4,7 @@ package utf8s
func Len(r rune) int {
switch {
case 127 > r:
case 127 >= r:
return 1
case 0x7FF >= r: