From a429334106ea411b12069d1d880170661e6305bd Mon Sep 17 00:00:00 2001 From: skim Date: Thu, 18 Jun 2020 10:23:16 -0700 Subject: [PATCH] trims trailing space in doc comments --- crates/cli-support/src/js/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index 159b65ffc39..f65de41861c 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -3356,7 +3356,7 @@ fn check_duplicated_getter_and_setter_names( fn format_doc_comments(comments: &str, js_doc_comments: Option) -> String { let body: String = comments.lines().map(|c| format!("*{}\n", c)).collect(); let doc = if let Some(docs) = js_doc_comments { - docs.lines().map(|l| format!("* {} \n", l)).collect() + docs.lines().map(|l| format!("* {}\n", l)).collect() } else { String::new() };