We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da55ef commit c06e62eCopy full SHA for c06e62e
src/rustdoc/gen.rs
@@ -136,7 +136,12 @@ fn write_args(
136
}
137
138
fn write_arg(ctxt: ctxt, arg: doc::argdoc) {
139
- ctxt.w.write_line(#fmt("* %s", arg.name));
+ assert option::is_some(arg.ty);
140
+ ctxt.w.write_line(#fmt(
141
+ "* %s: `%s`",
142
+ arg.name,
143
+ option::get(arg.ty)
144
+ ));
145
146
147
#[test]
@@ -147,8 +152,8 @@ fn should_write_argument_list() {
152
markdown,
148
153
"Arguments:\n\
149
154
\n\
150
- * b\n\
151
- * c\n\
155
+ * b: `int`\n\
156
+ * c: `int`\n\
157
\n"
158
);
159
0 commit comments