diff options
Diffstat (limited to 'cli/doc/parser.rs')
-rw-r--r-- | cli/doc/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/doc/parser.rs b/cli/doc/parser.rs index 9215637c5..3746e3dfb 100644 --- a/cli/doc/parser.rs +++ b/cli/doc/parser.rs @@ -530,7 +530,7 @@ impl DocParser { pub fn js_doc_for_span(&self, span: Span) -> Option<String> { let comments = self.ast_parser.get_span_comments(span); - let js_doc_comment = comments.iter().find(|comment| { + let js_doc_comment = comments.iter().rev().find(|comment| { comment.kind == CommentKind::Block && comment.text.starts_with('*') })?; |