Rollup merge of #89954 - GuillaumeGomez:legacy-const-generic-doc, r=Amanieu
Fix legacy_const_generic doc arguments display Fixes https://github.com/rust-lang/rust/issues/83167. cc ``@Amanieu``
This commit is contained in:
commit
444635df25
4 changed files with 57 additions and 1 deletions
|
@ -1177,6 +1177,10 @@ impl clean::FnDecl {
|
|||
args.push_str(" <br>");
|
||||
args_plain.push(' ');
|
||||
}
|
||||
if input.is_const {
|
||||
args.push_str("const ");
|
||||
args_plain.push_str("const ");
|
||||
}
|
||||
if !input.name.is_empty() {
|
||||
args.push_str(&format!("{}: ", input.name));
|
||||
args_plain.push_str(&format!("{}: ", input.name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue