@@ -1534,10 +1534,10 @@ function preLoadCss(cssUrl) {
1534
1534
1535
1535
function buildHelpMenu ( ) {
1536
1536
const book_info = document . createElement ( "span" ) ;
1537
- const channel = getVar ( "channel" ) ;
1537
+ const drloChannel = `https://doc.rust-lang.org/ ${ getVar ( "channel" ) } ` ;
1538
1538
book_info . className = "top" ;
1539
1539
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>.` ;
1541
1541
1542
1542
const shortcuts = [
1543
1543
[ "?" , "Show this help dialog" ] ,
@@ -1557,8 +1557,8 @@ function preLoadCss(cssUrl) {
1557
1557
div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
1558
1558
1559
1559
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>.`,
1562
1562
"Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to \
1563
1563
restrict the search to a given item kind." ,
1564
1564
"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
1568
1568
<code>-> vec</code> or <code>String, enum:Cow -> bool</code>)" ,
1569
1569
"You can look for items with an exact name by putting double quotes around \
1570
1570
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>)` ,
1575
1575
"Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
1576
1576
] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
1577
1577
const div_infos = document . createElement ( "div" ) ;
0 commit comments