Add rustdoc test for double-hyphen to dash doc comment conversion

This commit is contained in:
Guillaume Gomez 2023-06-02 13:51:01 +02:00
parent fabf929863
commit 653f9c7f28

View File

@ -0,0 +1,9 @@
// This test ensures that `--` (double-hyphen) is correctly converted into `` (dash).
#![crate_name = "foo"]
// @has 'foo/index.html' '//*[@class="desc docblock-short"]' ''
// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' ''
/// --
pub struct Bar;