Skip to content

Commit 28ce0b9

Browse files
author
Lukas Markeffsky
committed
rustdoc: add test for strikethrough with single tildes
Also merge the two almost identical strikethrough tests together and document what the test tests.
1 parent b63cc5c commit 28ce0b9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

tests/rustdoc/strikethrough-in-summary.rs

-6
This file was deleted.

tests/rustdoc/test-strikethrough.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#![crate_name = "foo"]
22

3-
// @has foo/fn.f.html
4-
// @has - //del "Y"
5-
/// ~~Y~~
3+
// Test that strikethrough works with single and double tildes and that it shows up on
4+
// the item's dedicated page as well as the parent module's summary of items.
5+
6+
// @has foo/index.html //del 'strike'
7+
// @has foo/index.html //del 'through'
8+
9+
// @has foo/fn.f.html //del 'strike'
10+
// @has foo/fn.f.html //del 'through'
11+
12+
/// ~~strike~~ ~through~
613
pub fn f() {}

0 commit comments

Comments
 (0)