mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
encoding.utf8: fix 'length' typo in two spots (#8746)
This commit is contained in:
@ -17,7 +17,7 @@ Utility functions
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// len return the leght as number of unicode chars from a string
|
// len return the length as number of unicode chars from a string
|
||||||
pub fn len(s string) int {
|
pub fn len(s string) int {
|
||||||
mut count := 0
|
mut count := 0
|
||||||
mut index := 0
|
mut index := 0
|
||||||
@ -33,7 +33,7 @@ pub fn len(s string) int {
|
|||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
// u_len return the leght as number of unicode chars from a ustring
|
// u_len return the length as number of unicode chars from a ustring
|
||||||
pub fn u_len(s ustring) int {
|
pub fn u_len(s ustring) int {
|
||||||
return len(s.s)
|
return len(s.s)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user