@@ -1358,10 +1358,10 @@ function preLoadCss(cssUrl) {
1358
1358
1359
1359
function buildHelpMenu ( ) {
1360
1360
const book_info = document . createElement ( "span" ) ;
1361
- const channel = getVar ( "channel" ) ;
1361
+ const channel = `https://doc.rust-lang.org/ ${ getVar ( "channel" ) } ` ;
1362
1362
book_info . className = "top" ;
1363
1363
book_info . innerHTML = `You can find more information in \
1364
- <a href="https://doc.rust-lang.org/ ${ channel } /rustdoc/">the rustdoc book</a>.` ;
1364
+ <a href="${ channel } /rustdoc/">the rustdoc book</a>.` ;
1365
1365
1366
1366
const shortcuts = [
1367
1367
[ "?" , "Show this help dialog" ] ,
@@ -1381,8 +1381,8 @@ function preLoadCss(cssUrl) {
1381
1381
div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
1382
1382
1383
1383
const infos = [
1384
- `For a full list of all search features, take a look <a \
1385
- href="https://doc.rust-lang.org/ ${ channel } /rustdoc/read-documentation/search.html">here</a>.` ,
1384
+ `For a full list of all search features, take a look \
1385
+ <a href="${ channel } /rustdoc/read-documentation/search.html">here</a>.`,
1386
1386
"Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to \
1387
1387
restrict the search to a given item kind." ,
1388
1388
"Accepted kinds are: <code>fn</code>, <code>mod</code>, <code>struct</code>, \
@@ -1392,10 +1392,10 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
1392
1392
<code>-> vec</code> or <code>String, enum:Cow -> bool</code>)" ,
1393
1393
"You can look for items with an exact name by putting double quotes around \
1394
1394
your request: <code>\"string\"</code>" ,
1395
- " Look for functions that accept or return \
1396
- <a href=\"https://doc.rust-lang.org /std/primitive.slice.html\">slices</a> and \
1397
- <a href=\"https://doc.rust-lang.org/ std/primitive.array.html\">arrays</a> by writing \
1398
- square brackets (e.g., <code>-> [u8]</code> or <code>[] -> Option</code>)" ,
1395
+ ` Look for functions that accept or return \
1396
+ <a href=\"${ channel } /std/primitive.slice.html\">slices</a> and \
1397
+ <a href=\"${ channel } / std/primitive.array.html\">arrays</a> by writing square \
1398
+ brackets (e.g., <code>-> [u8]</code> or <code>[] -> Option</code>)` ,
1399
1399
"Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
1400
1400
] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
1401
1401
const div_infos = document . createElement ( "div" ) ;
0 commit comments