Skip to content

Commit 653f9c7

Browse files
Add rustdoc test for double-hyphen to dash doc comment conversion
1 parent fabf929 commit 653f9c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
+9
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)