mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Unconditionally trim the end of comments
This commit is contained in:
parent
d65dc40348
commit
0f61aa1f09
2 changed files with 5 additions and 13 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue