rustdoc: add test for strikethrough with single tildes
Also merge the two almost identical strikethrough tests together and document what the test tests.
This commit is contained in:
parent
b63cc5c307
commit
28ce0b9940
@ -1,6 +0,0 @@
|
|||||||
#![crate_name = "foo"]
|
|
||||||
|
|
||||||
// @has foo/index.html '//del' 'strike'
|
|
||||||
|
|
||||||
/// ~~strike~~
|
|
||||||
pub fn strike() {}
|
|
@ -1,6 +1,13 @@
|
|||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
// @has foo/fn.f.html
|
// Test that strikethrough works with single and double tildes and that it shows up on
|
||||||
// @has - //del "Y"
|
// the item's dedicated page as well as the parent module's summary of items.
|
||||||
/// ~~Y~~
|
|
||||||
|
// @has foo/index.html //del 'strike'
|
||||||
|
// @has foo/index.html //del 'through'
|
||||||
|
|
||||||
|
// @has foo/fn.f.html //del 'strike'
|
||||||
|
// @has foo/fn.f.html //del 'through'
|
||||||
|
|
||||||
|
/// ~~strike~~ ~through~
|
||||||
pub fn f() {}
|
pub fn f() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user