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`
This commit is contained in:
commit
5397b31744
9
tests/rustdoc/double-hyphen-to-dash.rs
Normal file
9
tests/rustdoc/double-hyphen-to-dash.rs
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user