-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: add test for strikethrough with single tildes
Also merge the two almost identical strikethrough tests together and document what the test tests.
- Loading branch information
Lukas Markeffsky
committed
May 25, 2023
1 parent
b63cc5c
commit 28ce0b9
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#![crate_name = "foo"] | ||
|
||
// @has foo/fn.f.html | ||
// @has - //del "Y" | ||
/// ~~Y~~ | ||
// Test that strikethrough works with single and double tildes and that it shows up on | ||
// the item's dedicated page as well as the parent module's summary of items. | ||
|
||
// @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() {} |