diff --git a/doctree/indexer/javascript/indexer.go b/doctree/indexer/javascript/indexer.go index a472f84..4b66d5c 100644 --- a/doctree/indexer/javascript/indexer.go +++ b/doctree/indexer/javascript/indexer.go @@ -358,7 +358,7 @@ func extractFunctionDocs(s string) string { } captures := getCaptures(query, match) funcDescription := firstCaptureContentOr(comment, captures["func_description"], "") - funcDocs += fmt.Sprintf("%s\n", funcDescription) + funcDocs = fmt.Sprintf("%s\n", funcDescription) identifierType := firstCaptureContentOr(comment, captures["identifier_type"], "") if identifierType != "" {