Skip to content

Commit

Permalink
Add rustdoc test for double-hyphen to dash doc comment conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 2, 2023
1 parent fabf929 commit 653f9c7
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 653f9c7

Please sign in to comment.