@@ -1534,10 +1534,10 @@ function preLoadCss(cssUrl) {
15341534
15351535 function buildHelpMenu ( ) {
15361536 const book_info = document . createElement ( "span" ) ;
1537- const channel = getVar ( "channel" ) ;
1537+ const drloChannel = `https://doc.rust-lang.org/ ${ getVar ( "channel" ) } ` ;
15381538 book_info . className = "top" ;
15391539 book_info . innerHTML = `You can find more information in \
1540- <a href="https://doc.rust-lang.org/ ${ channel } /rustdoc/">the rustdoc book</a>.` ;
1540+ <a href="${ drloChannel } /rustdoc/">the rustdoc book</a>.` ;
15411541
15421542 const shortcuts = [
15431543 [ "?" , "Show this help dialog" ] ,
@@ -1557,8 +1557,8 @@ function preLoadCss(cssUrl) {
15571557 div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
15581558
15591559 const infos = [
1560- `For a full list of all search features, take a look <a \
1561- href="https://doc.rust-lang.org/ ${ channel } /rustdoc/read-documentation/search.html">here</a>.` ,
1560+ `For a full list of all search features, take a look \
1561+ <a href="${ drloChannel } /rustdoc/read-documentation/search.html">here</a>.`,
15621562 "Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to \
15631563 restrict the search to a given item kind." ,
15641564 "Accepted kinds are: <code>fn</code>, <code>mod</code>, <code>struct</code>, \
@@ -1568,10 +1568,10 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
15681568 <code>-> vec</code> or <code>String, enum:Cow -> bool</code>)" ,
15691569 "You can look for items with an exact name by putting double quotes around \
15701570 your request: <code>\"string\"</code>" ,
1571- " Look for functions that accept or return \
1572- <a href=\"https://doc.rust-lang.org/ std/primitive.slice.html\ ">slices</a> and \
1573- <a href=\"https://doc.rust-lang.org/ std/primitive.array.html\ ">arrays</a> by writing \
1574- square brackets (e.g., <code>-> [u8]</code> or <code>[] -> Option</code>)" ,
1571+ ` Look for functions that accept or return \
1572+ <a href=" ${ drloChannel } / std/primitive.slice.html">slices</a> and \
1573+ <a href=" ${ drloChannel } / std/primitive.array.html">arrays</a> by writing square \
1574+ brackets (e.g., <code>-> [u8]</code> or <code>[] -> Option</code>)` ,
15751575 "Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
15761576 ] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
15771577 const div_infos = document . createElement ( "div" ) ;
0 commit comments