From 4d26bde4f0b24ca6121eec167bc8d48f4b7179cc Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 20 Apr 2022 21:11:39 +0200 Subject: [PATCH] Extend `handleSingleArg` documentation --- src/librustdoc/html/static/js/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 260f2bcb2cdc1..0d4e0a0b3289d 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -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`.