Include trailing commas in wrapped function declarations [RustDoc] #125901
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Take a look at the docs for
mir::Visitor
: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/visit/trait.Visitor.html#method.visit_localRustdoc is making good choices for whether to wrap the declarations
But when it wraps, it doesn't include a trailing comma on the last parameter.
I think it should, because the default style guide wants a comma there.
(And rustdoc should continue not putting a trailing comma when the declaration is shown as a single line.)
The text was updated successfully, but these errors were encountered: