1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

utf8: fix typo in utf8_util.v (#13624)

This commit is contained in:
Ikko Ashimine 2022-03-02 02:06:48 +09:00 committed by GitHub
parent fd91811fe2
commit aa633dab41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}