rustdoc: Add function signature field to the doc::fndoc
This commit is contained in:
parent
c267821742
commit
052340980b
@ -134,7 +134,8 @@ fn fold_fn(
|
||||
brief: attrs.brief,
|
||||
desc: attrs.desc,
|
||||
args: merge_arg_attrs(doc.args, attrs.args),
|
||||
return: merge_ret_attrs(doc.return, attrs.return)
|
||||
return: merge_ret_attrs(doc.return, attrs.return),
|
||||
ty: none
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,8 @@ type fndoc = ~{
|
||||
brief: option<str>,
|
||||
desc: option<str>,
|
||||
args: [argdoc],
|
||||
return: option<retdoc>
|
||||
return: option<retdoc>,
|
||||
ty: option<str>
|
||||
};
|
||||
|
||||
type argdoc = ~{
|
||||
|
@ -80,7 +80,8 @@ fn fndoc_from_fn(
|
||||
brief: none,
|
||||
desc: none,
|
||||
args: argdocs_from_args(decl.inputs),
|
||||
return: none
|
||||
return: none,
|
||||
ty: none
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user