From 26c26546329dbb4492fb3b92bfe9cd971b846564 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 5 Nov 2020 19:55:20 +0200 Subject: [PATCH] parser: vfmt vlib/v/parser/struct.v --- vlib/v/parser/struct.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/parser/struct.v b/vlib/v/parser/struct.v index cddd38413c..580f7507b6 100644 --- a/vlib/v/parser/struct.v +++ b/vlib/v/parser/struct.v @@ -390,9 +390,9 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl { typ := table.new_type(reg_idx) mut ts := p.table.get_type_symbol(typ) // if methods were declared before, it's an error, ignore them - ts.methods = []table.Fn{cap:20} + ts.methods = []table.Fn{cap: 20} // Parse methods - mut methods := []ast.FnDecl{cap:20} + mut methods := []ast.FnDecl{cap: 20} for p.tok.kind != .rcbr && p.tok.kind != .eof { method_start_pos := p.tok.position() line_nr := p.tok.line_nr