mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 22:18:40 +00:00
Fix invalid lint ID filtering
This commit is contained in:
parent
97d13a8c0a
commit
b33977b852
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ function scrollToLint(lintId) {
|
||||||
|
|
||||||
// If the page we arrive on has link to a given lint, we scroll to it.
|
// If the page we arrive on has link to a given lint, we scroll to it.
|
||||||
function scrollToLintByURL() {
|
function scrollToLintByURL() {
|
||||||
const lintId = window.location.hash.substring(2);
|
const lintId = window.location.hash.substring(1);
|
||||||
if (lintId.length > 0) {
|
if (lintId.length > 0) {
|
||||||
scrollToLint(lintId);
|
scrollToLint(lintId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue