From 194c2c926e412c7164936d59ae3bc4ff43619db6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 13 Oct 2020 16:46:56 +0200 Subject: [PATCH] doc: use the new table.type_to_str --- vlib/v/doc/doc.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/doc/doc.v b/vlib/v/doc/doc.v index 874b0f5a52..26ffb7840a 100644 --- a/vlib/v/doc/doc.v +++ b/vlib/v/doc/doc.v @@ -397,7 +397,7 @@ pub fn (mut d Doc) generate_from_ast(file_ast ast.File, orig_mod_name string) [] continue } if stmt.receiver.typ != 0 { - node.attrs['parent'] = d.fmt.type_to_str(stmt.receiver.typ).trim_left('&') + node.attrs['parent'] = d.fmt.table.type_to_str(stmt.receiver.typ).trim_left('&') p_idx := contents.index_by_name(node.attrs['parent']) if p_idx == -1 && node.attrs['parent'] != 'void' { contents << DocNode{ @@ -453,7 +453,7 @@ pub fn (mut d Doc) generate_from_ast_with_pos(file_ast ast.File, pos int) []DocN fn (mut d Doc) expr_typ_to_string(ex ast.Expr) string { expr_typ := d.checker.expr(ex) - return d.fmt.type_to_str(expr_typ) + return d.fmt.table.type_to_str(expr_typ) } fn (mut d Doc) generate() ?Doc {