Skip to content

Commit

Permalink
Auto merge of rust-lang#84285 - hi-rustin:rustin-patch-search, r=Guil…
Browse files Browse the repository at this point in the history
…laumeGomez

Fix the wrong return value type description of validateResult

It's should be boolean not [boolean].
  • Loading branch information
bors committed Apr 18, 2021
2 parents d7c3386 + 37b2897 commit b021bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b021bee

Please sign in to comment.