mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 17:50:51 +00:00
trims trailing space in doc comments (#2210)
This commit is contained in:
parent
64e53a5502
commit
41409d2b86
@ -3356,7 +3356,7 @@ fn check_duplicated_getter_and_setter_names(
|
|||||||
fn format_doc_comments(comments: &str, js_doc_comments: Option<String>) -> String {
|
fn format_doc_comments(comments: &str, js_doc_comments: Option<String>) -> String {
|
||||||
let body: String = comments.lines().map(|c| format!("*{}\n", c)).collect();
|
let body: String = comments.lines().map(|c| format!("*{}\n", c)).collect();
|
||||||
let doc = if let Some(docs) = js_doc_comments {
|
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 {
|
} else {
|
||||||
String::new()
|
String::new()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user