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

checker: fix string.str() error

This commit is contained in:
yuyi 2020-04-29 19:51:42 +08:00 committed by GitHub
parent 390d88f933
commit 1fabb7d5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -951,6 +951,10 @@ pub fn (s mut []string) sort_by_len() {
s.sort_with_compare(compare_strings_by_len) s.sort_with_compare(compare_strings_by_len)
} }
pub fn (s string) str() string {
return s
}
pub fn (s ustring) str() string { pub fn (s ustring) str() string {
return s.s return s.s
} }