Skip to content

Commit 5397b31

Browse files
authored
Rollup merge of rust-lang#112205 - GuillaumeGomez:double-hyphen-to-dash, r=notriddle
Add rustdoc test for double-hyphen to dash doc comment conversion Fixes rust-lang#64081. This PR adds a regression test for rust-lang#64081 so the issue can be closed. r? `@notriddle`
2 parents 82130eb + 653f9c7 commit 5397b31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This test ensures that `--` (double-hyphen) is correctly converted into `–` (dash).
2+
3+
#![crate_name = "foo"]
4+
5+
// @has 'foo/index.html' '//*[@class="desc docblock-short"]' '–'
6+
// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' '–'
7+
8+
/// --
9+
pub struct Bar;

0 commit comments

Comments
 (0)