Add test for block doc comments
This commit is contained in:
parent
2938be612d
commit
06b00ad199
2 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
<div class="docblock"><p>a</p>
|
||||
</div>
|
11
src/test/rustdoc/strip-block-doc-comments-stars.rs
Normal file
11
src/test/rustdoc/strip-block-doc-comments-stars.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
// The goal of this test is to answer that it won't be generated as a list because
|
||||
// block doc comments can have their lines starting with a star.
|
||||
|
||||
// @has foo/fn.foo.html
|
||||
// @snapshot docblock - '//*[@class="rustdoc-toggle top-doc"]//*[@class="docblock"]'
|
||||
/**
|
||||
* a
|
||||
*/
|
||||
pub fn foo() {}
|
Loading…
Add table
Add a link
Reference in a new issue