Skip to content

Commit

Permalink
Unrolled build for rust-lang#128210
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Jul 27, 2024
2 parents 7c2012d + 587b64e commit 8d003b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8d003b3

Please sign in to comment.