This commit is contained in:
Aleksey Kladov 2020-04-09 23:05:13 +02:00
parent 0ed27c388a
commit 046a021013

View File

@ -1,8 +1,7 @@
//! Various traits that are implemented by ast nodes.
//!
//! The implementations are usually trivial, and live in generated.rs
use itertools::Itertools;
use stdx::SepBy;
use crate::{
ast::{self, support, AstChildren, AstNode, AstToken},
@ -116,7 +115,8 @@ fn doc_comment_text(&self) -> Option<String> {
// of a line in markdown.
line[pos..end].to_owned()
})
.join("\n");
.sep_by("\n")
.to_string();
if has_comments {
Some(docs)