File tree 2 files changed +4
-4
lines changed
src/librustdoc/html/static/js
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -354,13 +354,13 @@ function preLoadCss(cssUrl) {
354
354
expandSection ( pageId ) ;
355
355
}
356
356
}
357
- if ( savedHash . startsWith ( "# impl-" ) ) {
357
+ if ( savedHash . startsWith ( "impl-" ) ) {
358
358
// impl-disambiguated links, used by the search engine
359
359
// format: impl-X[-for-Y]/method.WHATEVER
360
360
// turn this into method.WHATEVER[-NUMBER]
361
361
const splitAt = savedHash . indexOf ( "/" ) ;
362
362
if ( splitAt !== - 1 ) {
363
- const implId = savedHash . slice ( 1 , splitAt ) ;
363
+ const implId = savedHash . slice ( 0 , splitAt ) ;
364
364
const assocId = savedHash . slice ( splitAt + 1 ) ;
365
365
const implElem = document . getElementById ( implId ) ;
366
366
if ( implElem && implElem . parentElement . tagName === "SUMMARY" &&
Original file line number Diff line number Diff line change 2
2
3
3
// Checks that, if a type has two methods with the same name, they both get
4
4
// linked correctly.
5
- goto : "file://" + |DOC_PATH| + "/test_docs/index.html"
5
+ go-to : "file://" + |DOC_PATH| + "/test_docs/index.html"
6
6
7
7
// This should link to the inherent impl
8
8
write: (".search-input", "ZyxwvutMethodDisambiguation -> bool")
@@ -22,7 +22,7 @@ assert-document-property: ({
22
22
}, ENDS_WITH)
23
23
assert: "section:target"
24
24
25
- goto : "file://" + |DOC_PATH| + "/test_docs/index.html"
25
+ go-to : "file://" + |DOC_PATH| + "/test_docs/index.html"
26
26
27
27
// This should link to the trait impl
28
28
write: (".search-input", "ZyxwvutMethodDisambiguation, usize -> usize")
You can’t perform that action at this time.
0 commit comments