diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-01-18 16:56:37 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-01-19 11:18:17 +0100 |
| commit | 06b00ad19972c18150fe25a9b3716ffdf5300a83 (patch) | |
| tree | 3d897d134f39e51e11fdf9d6450fba6af02ade00 | |
| parent | 2938be612dce1d2976bebf80812d713257a3b501 (diff) | |
| download | rust-06b00ad19972c18150fe25a9b3716ffdf5300a83.tar.gz rust-06b00ad19972c18150fe25a9b3716ffdf5300a83.zip | |
Add test for block doc comments
| -rw-r--r-- | src/test/rustdoc/strip-block-doc-comments-stars.docblock.html | 2 | ||||
| -rw-r--r-- | src/test/rustdoc/strip-block-doc-comments-stars.rs | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc/strip-block-doc-comments-stars.docblock.html b/src/test/rustdoc/strip-block-doc-comments-stars.docblock.html new file mode 100644 index 00000000000..22b0b5dc47e --- /dev/null +++ b/src/test/rustdoc/strip-block-doc-comments-stars.docblock.html @@ -0,0 +1,2 @@ +<div class="docblock"><p>a</p> +</div> \ No newline at end of file diff --git a/src/test/rustdoc/strip-block-doc-comments-stars.rs b/src/test/rustdoc/strip-block-doc-comments-stars.rs new file mode 100644 index 00000000000..ed2297b4fac --- /dev/null +++ b/src/test/rustdoc/strip-block-doc-comments-stars.rs @@ -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() {} |
