about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2024-07-25 17:51:35 -0400
committerbinarycat <binarycat@envs.net>2024-07-25 17:51:35 -0400
commit370fcce5646a55a15f2753bb3d8f249d065e192e (patch)
tree2c0aef84ca69a722c0020a0cbc38cdb5f6ead114
parent54be9ad5eb47207d155904f6c912a9526133f75f (diff)
downloadrust-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.
-rw-r--r--src/librustdoc/html/static/js/search.js2
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.