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

a[start..end] slicing

This commit is contained in:
Alexander Medvednikov
2019-10-26 21:58:26 +03:00
parent 678ce54e70
commit 570a7aaaf3
3 changed files with 33 additions and 11 deletions

View File

@ -70,7 +70,7 @@ fn types_to_c(types []Type, table &Table) string {
return sb.str()
}
fn (p mut Parser) index_get(typ string, fn_ph int, cfg IndexCfg) {
fn (p mut Parser) index_get(typ string, fn_ph int, cfg IndexConfig) {
p.cgen.cur_line = p.cgen.cur_line.replace(',', '[') + ']'
}