Skip to content

Commit

Permalink
Add link to rustdoc book search chapter in help popover
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 23, 2023
1 parent fe37f37 commit 2f3bed0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/html/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,9 @@ function preLoadCss(cssUrl) {
div_shortcuts.innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>";

const infos = [
"For a full list of all search features, take a look <a \
href='https://doc.rust-lang.org/stable/rustdoc/how-to-read-rustdoc.html\
#the-search-interface'>here</a>.",
"Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to \
restrict the search to a given item kind.",
"Accepted kinds are: <code>fn</code>, <code>mod</code>, <code>struct</code>, \
Expand Down

0 comments on commit 2f3bed0

Please sign in to comment.