diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-02 18:12:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 18:12:46 +0200 |
| commit | 5397b31744bfec45bfa47937056740b9c59d126f (patch) | |
| tree | 9ba000e5e476ec27fc14b74fc3dc488204446234 | |
| parent | 82130eb9d2cc68f66cdbbc60b085fbba5ba544ec (diff) | |
| parent | 653f9c7f28d8b5669e1f64f9210db92335151e78 (diff) | |
| download | rust-5397b31744bfec45bfa47937056740b9c59d126f.tar.gz rust-5397b31744bfec45bfa47937056740b9c59d126f.zip | |
Rollup merge of #112205 - GuillaumeGomez:double-hyphen-to-dash, r=notriddle
Add rustdoc test for double-hyphen to dash doc comment conversion Fixes https://github.com/rust-lang/rust/issues/64081. This PR adds a regression test for #64081 so the issue can be closed. r? `@notriddle`
| -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; |
