diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-11-29 17:14:05 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-12-02 14:17:20 +0100 |
| commit | d7e998dd14a8eed64df84d3a0ae05a906d7df152 (patch) | |
| tree | 12683dafbe0e9f1ee1a381ec281666a269d5ed15 /src/librustdoc/html/markdown/tests.rs | |
| parent | 1e55c31cbbc43a21c93ed5652dc39c267e6557af (diff) | |
| download | rust-d7e998dd14a8eed64df84d3a0ae05a906d7df152.tar.gz rust-d7e998dd14a8eed64df84d3a0ae05a906d7df152.zip | |
Rename ID "main" into "main-content"
Diffstat (limited to 'src/librustdoc/html/markdown/tests.rs')
| -rw-r--r-- | src/librustdoc/html/markdown/tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/html/markdown/tests.rs b/src/librustdoc/html/markdown/tests.rs index 68ab002f138..d4af3663b62 100644 --- a/src/librustdoc/html/markdown/tests.rs +++ b/src/librustdoc/html/markdown/tests.rs @@ -12,7 +12,7 @@ fn test_unique_id() { "examples", "method.into_iter", "foo", - "main", + "main-content", "search", "methods", "examples", @@ -28,7 +28,7 @@ fn test_unique_id() { "examples-2", "method.into_iter-1", "foo-1", - "main-1", + "main-content-1", "search-1", "methods", "examples-3", @@ -219,8 +219,8 @@ fn test_header_ids_multiple_blocks() { ); t( &mut map, - "# Main", - "<h2 id=\"main-1\" class=\"section-header\"><a href=\"#main-1\">Main</a></h2>", + "# Search", + "<h2 id=\"search-1\" class=\"section-header\"><a href=\"#search-1\">Search</a></h2>", ); t( &mut map, |
