mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler/vlib: replace substr/left/right with [start..end] everywhere
This commit is contained in:
committed by
Alexander Medvednikov
parent
ed55826686
commit
59378dce46
@@ -69,5 +69,5 @@ fn filter_word(word string) string {
|
||||
i++
|
||||
}
|
||||
end := i
|
||||
return word.substr(start, end)
|
||||
return word[start..end]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user