Skip to content

Commit

Permalink
Rollup merge of #112205 - GuillaumeGomez:double-hyphen-to-dash, r=not…
Browse files Browse the repository at this point in the history
…riddle

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

Fixes #64081.

This PR adds a regression test for #64081 so the issue can be closed.

r? `@notriddle`
  • Loading branch information
matthiaskrgr authored Jun 2, 2023
2 parents 82130eb + 653f9c7 commit 5397b31
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/rustdoc/double-hyphen-to-dash.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 5397b31

Please sign in to comment.