utf8: fix typo in utf8_util.v (#13624)
parent
fd91811fe2
commit
aa633dab41
|
@ -72,7 +72,7 @@ pub fn get_uchar(s string, index int) int {
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// raw_index - get the raw chracter from the string by the given index value.
|
// raw_index - get the raw character from the string by the given index value.
|
||||||
// example: utf8.raw_index('我是V Lang', 1) => '是'
|
// example: utf8.raw_index('我是V Lang', 1) => '是'
|
||||||
pub fn raw_index(s string, index int) string {
|
pub fn raw_index(s string, index int) string {
|
||||||
mut r := []rune{}
|
mut r := []rune{}
|
||||||
|
|
Loading…
Reference in New Issue