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

checker: do not display errors for incorrectly initialized vars

This commit is contained in:
Alexander Medvednikov
2020-06-08 13:10:47 +02:00
parent 288a6ee468
commit dabfc4ebd0
2 changed files with 22 additions and 4 deletions

View File

@ -1344,6 +1344,10 @@ pub fn (s string) repeat(count int) string {
return string(ret)
}
pub fn (s string) fields() []string {
return s.split(' ')
}
// Allows multi-line strings to be formatted in a way that removes white-space
// before a delimeter. by default `|` is used.
// Note: the delimiter has to be a byte at this time. That means surrounding