Skip to content

Commit

Permalink
Extend handleSingleArg documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 20, 2022
1 parent 8d0e10c commit 4d26bde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,10 @@ window.initSearch = function(rawSearchIndex) {

/**
* This function is called in case the query is only one element (with or without generics).
* This element will be compared to arguments' and returned values' items and also to items.
*
* Other important thing to note: since there is only one element, we use levenshtein
* distance for name comparisons.
*
* @param {Row} row
* @param {integer} pos - Position in the `searchIndex`.
Expand Down

0 comments on commit 4d26bde

Please sign in to comment.