mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax
This commit is contained in:
@ -479,7 +479,7 @@ enum CharClass_parse_state {
|
||||
}
|
||||
|
||||
fn (re RE) get_char_class(pc int) string {
|
||||
buf := [byte(0)].repeat(re.cc.len)
|
||||
buf := []byte{len:(re.cc.len)}
|
||||
mut buf_ptr := &byte(&buf)
|
||||
|
||||
mut cc_i := re.prog[pc].cc_index
|
||||
|
Reference in New Issue
Block a user