Auto merge of #84285 - hi-rustin:rustin-patch-search, r=GuillaumeGomez

Fix the wrong return value type description of validateResult

It's should be boolean not [boolean].
This commit is contained in:
bors 2021-04-18 11:42:51 +00:00
commit b021beeb60

View File

@ -840,7 +840,7 @@ window.initSearch = function(rawSearchIndex) {
* @param {[string]} path [The path of the result] * @param {[string]} path [The path of the result]
* @param {[string]} keys [The keys to be used (["file", "open"])] * @param {[string]} keys [The keys to be used (["file", "open"])]
* @param {[object]} parent [The parent of the result] * @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) { function validateResult(name, path, keys, parent) {
for (var i = 0, len = keys.length; i < len; ++i) { for (var i = 0, len = keys.length; i < len; ++i) {