diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-02 13:51:01 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-02 13:51:01 +0200 |
| commit | 653f9c7f28d8b5669e1f64f9210db92335151e78 (patch) | |
| tree | b7272f3e2b27b7fe9ba1773a046d738f6687d1e2 /tests/rustdoc/double-hyphen-to-dash.rs | |
| parent | fabf9298633ca64450fa2af535252dc44a3b1080 (diff) | |
| download | rust-653f9c7f28d8b5669e1f64f9210db92335151e78.tar.gz rust-653f9c7f28d8b5669e1f64f9210db92335151e78.zip | |
Add rustdoc test for double-hyphen to dash doc comment conversion
Diffstat (limited to 'tests/rustdoc/double-hyphen-to-dash.rs')
| -rw-r--r-- | tests/rustdoc/double-hyphen-to-dash.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/double-hyphen-to-dash.rs b/tests/rustdoc/double-hyphen-to-dash.rs new file mode 100644 index 00000000000..66905f90cfc --- /dev/null +++ b/tests/rustdoc/double-hyphen-to-dash.rs @@ -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; |
