diff options
| author | binarycat <binarycat@envs.net> | 2024-07-25 17:51:35 -0400 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2024-07-25 17:51:35 -0400 |
| commit | 370fcce5646a55a15f2753bb3d8f249d065e192e (patch) | |
| tree | 2c0aef84ca69a722c0020a0cbc38cdb5f6ead114 /src/librustdoc/html/static/js | |
| parent | 54be9ad5eb47207d155904f6c912a9526133f75f (diff) | |
| download | rust-370fcce5646a55a15f2753bb3d8f249d065e192e.tar.gz rust-370fcce5646a55a15f2753bb3d8f249d065e192e.zip | |
rustdoc: change title of search results
the current title is too similar to that of the page for std::result::Result, which is a problem both for navigating to the Result docs via browser autocomplete, and for being able to tell which tab is which when the width of tabs is small.
Diffstat (limited to 'src/librustdoc/html/static/js')
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 86af38f3ee7..c6618c9859c 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -2932,7 +2932,7 @@ ${item.displayPath}<span class="${type}">${name}</span>\ } // Update document title to maintain a meaningful browser history - searchState.title = "Results for " + query.original + " - Rust"; + searchState.title = '"' + query.original + '" Search - Rust'; // Because searching is incremental by character, only the most // recent search query is added to the browser history. |
