Skip to content

Commit 8d003b3

Browse files
authored
Unrolled build for rust-lang#128210
Rollup merge of rust-lang#128210 - lolbinarycat:rustdoc-search-title, r=notriddle,GuillaumeGomez 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.
2 parents 7c2012d + 587b64e commit 8d003b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@ ${item.displayPath}<span class="${type}">${name}</span>\
29322932
}
29332933

29342934
// Update document title to maintain a meaningful browser history
2935-
searchState.title = "Results for " + query.original + " - Rust";
2935+
searchState.title = "\"" + query.original + "\" Search - Rust";
29362936

29372937
// Because searching is incremental by character, only the most
29382938
// recent search query is added to the browser history.

0 commit comments

Comments
 (0)