Unconditionally trim the end of comments

This commit is contained in:
kjeremy 2019-07-31 13:59:14 -04:00
parent d65dc40348
commit 0f61aa1f09
2 changed files with 5 additions and 13 deletions

View file

@ -181,10 +181,7 @@ fn test_doc_comment_multi_line_block_strips_suffix() {
.ok()
.unwrap();
let module = file.syntax().descendants().find_map(Module::cast).unwrap();
assert_eq!(
" this\n is\n mod foo\n ",
module.doc_comment_text().unwrap()
);
assert_eq!(" this\n is\n mod foo", module.doc_comment_text().unwrap());
}
#[test]