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 0b9f2a8 commit 5166cc2Copy full SHA for 5166cc2
src/rustdoc/attr_parser.rs
@@ -320,15 +320,15 @@ fn parse_const_long_doc(
320
fn should_parse_const_short_doc() {
321
let source = "#[doc = \"description\"]";
322
let attrs = test::parse_attributes(source);
323
- let attrs = parse_fn(attrs);
+ let attrs = parse_const(attrs);
324
assert attrs.desc == some("description");
325
}
326
327
#[test]
328
fn should_parse_const_long_doc() {
329
let source = "#[doc(brief = \"a\", desc = \"b\")]";
330
331
332
assert attrs.brief == some("a");
333
assert attrs.desc == some("b");
334
0 commit comments