Skip to content

Commit 5166cc2

Browse files
committed
rustdoc: Fix a copy&paste bug in attr_parser tests
1 parent 0b9f2a8 commit 5166cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustdoc/attr_parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,15 @@ fn parse_const_long_doc(
320320
fn should_parse_const_short_doc() {
321321
let source = "#[doc = \"description\"]";
322322
let attrs = test::parse_attributes(source);
323-
let attrs = parse_fn(attrs);
323+
let attrs = parse_const(attrs);
324324
assert attrs.desc == some("description");
325325
}
326326

327327
#[test]
328328
fn should_parse_const_long_doc() {
329329
let source = "#[doc(brief = \"a\", desc = \"b\")]";
330330
let attrs = test::parse_attributes(source);
331-
let attrs = parse_fn(attrs);
331+
let attrs = parse_const(attrs);
332332
assert attrs.brief == some("a");
333333
assert attrs.desc == some("b");
334334
}

0 commit comments

Comments
 (0)