mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 12:43:18 +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.
|
||||
function scrollToLintByURL() {
|
||||
const lintId = window.location.hash.substring(2);
|
||||
const lintId = window.location.hash.substring(1);
|
||||
if (lintId.length > 0) {
|
||||
scrollToLint(lintId);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue