checker: fix string.str() error

pull/4647/head
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
1 changed files with 4 additions and 0 deletions

View File

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