about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhi-rustin <rustin.liu@gmail.com>2021-04-18 10:43:14 +0800
committerhi-rustin <rustin.liu@gmail.com>2021-04-18 10:43:14 +0800
commit37b289720d5913dc2b53debb3a566d42062bdfb3 (patch)
treedee828c6bf54ce9c5a1470058208059e344c6566
parent83ca4b7e600241850e61be48dee859f1604de50d (diff)
Fix the wrong return value type description of validateResult
-rw-r--r--src/librustdoc/html/static/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/search.js b/src/librustdoc/html/static/search.js
index 538c811c710..eb232a96081 100644
--- a/src/librustdoc/html/static/search.js
+++ b/src/librustdoc/html/static/search.js
@@ -840,7 +840,7 @@ window.initSearch = function(rawSearchIndex) {
      * @param  {[string]} path   [The path of the result]
      * @param  {[string]} keys   [The keys to be used (["file", "open"])]
      * @param  {[object]} parent [The parent of the result]
-     * @return {[boolean]}       [Whether the result is valid or not]
+     * @return {boolean}       [Whether the result is valid or not]
      */
     function validateResult(name, path, keys, parent) {
         for (var i = 0, len = keys.length; i < len; ++i) {