mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v doc: don't show 'pub' at the beginning
This commit is contained in:
parent
db22bc579a
commit
ed9075b937
@ -63,7 +63,7 @@ pub fn doc(mod string, table &table.Table) string {
|
||||
}
|
||||
|
||||
fn (d &Doc) get_fn_node(f ast.FnDecl) string {
|
||||
return f.str(d.table).replace(d.mod + '.', '')
|
||||
return f.str(d.table).replace_each([d.mod + '.', '', 'pub ', ''])
|
||||
}
|
||||
|
||||
fn (d mut Doc) print_fns() {
|
||||
@ -92,7 +92,8 @@ fn (d Doc) get_fn_signatures(filter_fn FilterFn) []string {
|
||||
fn_signatures << d.get_fn_node(it)
|
||||
}
|
||||
}
|
||||
else {}
|
||||
else {
|
||||
}
|
||||
}
|
||||
}
|
||||
fn_signatures.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user