diff options
| author | xFrednet <xFrednet@gmail.com> | 2020-12-22 20:02:59 +0000 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2020-12-22 20:02:59 +0000 |
| commit | f055e7f2e9cc7233dd31384afdb303d362578012 (patch) | |
| tree | ba251f85f36f36a3b402c7c93369e135745140f8 | |
| parent | 97f5db97c464bfa44467ccff5c0ff6ac2a681d85 (diff) | |
| download | rust-f055e7f2e9cc7233dd31384afdb303d362578012.tar.gz rust-f055e7f2e9cc7233dd31384afdb303d362578012.zip | |
Fixed a value spelling mistake
| -rw-r--r-- | util/gh-pages/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/gh-pages/index.html b/util/gh-pages/index.html index ad48294b844..1852fb6640e 100644 --- a/util/gh-pages/index.html +++ b/util/gh-pages/index.html @@ -181,7 +181,7 @@ } } - function searchLint(lint, therm) { + function searchLint(lint, term) { for (const field in lint.docs) { // Continue if it's not a property if (!lint.docs.hasOwnProperty(field)) { @@ -189,7 +189,7 @@ } // Return if not found - if (lint.docs[field].toLowerCase().indexOf(therm) !== -1) { + if (lint.docs[field].toLowerCase().indexOf(term) !== -1) { return true; } } @@ -247,13 +247,13 @@ // Search the description // The use of `for`-loops instead of `foreach` enables us to return early - let therms = searchStr.split(" "); - for (index = 0; index < therms.length; index++) { - if (lint.id.indexOf(therms[index]) !== -1) { + let terms = searchStr.split(" "); + for (index = 0; index < terms.length; index++) { + if (lint.id.indexOf(terms[index]) !== -1) { continue; } - if (searchLint(lint, therms[index])) { + if (searchLint(lint, terms[index])) { continue; } |
