Skip to content

Commit 06b00ad

Browse files
Add test for block doc comments
1 parent 2938be6 commit 06b00ad

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div class="docblock"><p>a</p>
2+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![crate_name = "foo"]
2+
3+
// The goal of this test is to answer that it won't be generated as a list because
4+
// block doc comments can have their lines starting with a star.
5+
6+
// @has foo/fn.foo.html
7+
// @snapshot docblock - '//*[@class="rustdoc-toggle top-doc"]//*[@class="docblock"]'
8+
/**
9+
* a
10+
*/
11+
pub fn foo() {}

0 commit comments

Comments
 (0)