diff options
author | kjeremy <[email protected]> | 2019-07-31 18:59:14 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2019-07-31 18:59:14 +0100 |
commit | 0f61aa1f09f0609271d3c0a3d23815488ec94949 (patch) | |
tree | ee77d2ed8300fad294b1609f4eba7c7cba232147 /crates/ra_syntax/src/ast.rs | |
parent | d65dc40348afc90c812b4d392f8e085eca78fc17 (diff) |
Unconditionally trim the end of comments
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index 8ac313e6e..6f0489617 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -181,10 +181,7 @@ fn test_doc_comment_multi_line_block_strips_suffix() { | |||
181 | .ok() | 181 | .ok() |
182 | .unwrap(); | 182 | .unwrap(); |
183 | let module = file.syntax().descendants().find_map(Module::cast).unwrap(); | 183 | let module = file.syntax().descendants().find_map(Module::cast).unwrap(); |
184 | assert_eq!( | 184 | assert_eq!(" this\n is\n mod foo", module.doc_comment_text().unwrap()); |
185 | " this\n is\n mod foo\n ", | ||
186 | module.doc_comment_text().unwrap() | ||
187 | ); | ||
188 | } | 185 | } |
189 | 186 | ||
190 | #[test] | 187 | #[test] |