@@ -1358,10 +1358,10 @@ function preLoadCss(cssUrl) {
13581358
13591359 function buildHelpMenu ( ) {
13601360 const book_info = document . createElement ( "span" ) ;
1361- const channel = getVar ( "channel" ) ;
1361+ const channel = `https://doc.rust-lang.org/ ${ getVar ( "channel" ) } ` ;
13621362 book_info . className = "top" ;
13631363 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>.` ;
13651365
13661366 const shortcuts = [
13671367 [ "?" , "Show this help dialog" ] ,
@@ -1381,8 +1381,8 @@ function preLoadCss(cssUrl) {
13811381 div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
13821382
13831383 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>.`,
13861386 "Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to \
13871387 restrict the search to a given item kind." ,
13881388 "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
13921392 <code>-> vec</code> or <code>String, enum:Cow -> bool</code>)" ,
13931393 "You can look for items with an exact name by putting double quotes around \
13941394 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>)` ,
13991399 "Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
14001400 ] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
14011401 const div_infos = document . createElement ( "div" ) ;
0 commit comments