Skip to content

Commit ca7cfbe

Browse files
committed
rustdoc: Add more rustdocs
1 parent b141de6 commit ca7cfbe

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/rustdoc/rustdoc.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,21 @@ fn run_passes(
1111
passes: [pass]
1212
) -> doc::cratedoc {
1313

14-
#[doc = "Run a series of passes over the document"];
14+
#[doc(
15+
brief =
16+
"Run a series of passes over the document",
17+
args(
18+
srv =
19+
"The AST service to provide to the passes",
20+
doc =
21+
"The document to transform",
22+
passes =
23+
"The list of passes used to transform the document"
24+
),
25+
return =
26+
"The transformed document that results from folding the \
27+
original through each pass"
28+
)];
1529

1630
vec::foldl(doc, passes) {|doc, pass|
1731
pass(srv, doc)

0 commit comments

Comments
 (0)