diff --git a/vlib/v/table/table.v b/vlib/v/table/table.v index 6fa4f00a12..de1988a6c5 100644 --- a/vlib/v/table/table.v +++ b/vlib/v/table/table.v @@ -73,7 +73,7 @@ fn (p []Param) equals(o []Param) bool { if p.len != o.len { return false } - for i in 0..p.len { + for i in 0 .. p.len { if !p[i].equals(o[i]) { return false } @@ -406,15 +406,15 @@ pub fn (t &Table) known_type(name string) bool { [inline] pub fn (t &Table) array_name(elem_type Type, nr_dims int) string { - elem_type_sym := t.get_type_symbol(elem_type) - mut res := '' - if elem_type.is_ptr() { - res = '_ptr'.repeat(elem_type.nr_muls()) - } - if nr_dims > 1 { - res += '_${nr_dims}d' - } - return 'array_$elem_type_sym.name' + res + elem_type_sym := t.get_type_symbol(elem_type) + mut res := '' + if elem_type.is_ptr() { + res = '_ptr'.repeat(elem_type.nr_muls()) + } + if nr_dims > 1 { + res += '_${nr_dims}d' + } + return 'array_$elem_type_sym.name' + res } // array_source_name generates the original name for the v source. @@ -428,15 +428,15 @@ pub fn (t &Table) array_source_name(elem_type Type) string { [inline] pub fn (t &Table) array_fixed_name(elem_type Type, size, nr_dims int) string { - elem_type_sym := t.get_type_symbol(elem_type) - mut res := '' - if elem_type.is_ptr() { - res = '_ptr' - } - if nr_dims > 1 { - res += '_${nr_dims}d' - } - return 'array_fixed_${elem_type_sym.name}_$size' + res + elem_type_sym := t.get_type_symbol(elem_type) + mut res := '' + if elem_type.is_ptr() { + res = '_ptr' + } + if nr_dims > 1 { + res += '_${nr_dims}d' + } + return 'array_fixed_${elem_type_sym.name}_$size' + res } // array_fixed_source_name generates the original name for the v source.