diff options
author | Aaron Loucks <[email protected]> | 2020-05-31 16:33:48 +0100 |
---|---|---|
committer | Aaron Loucks <[email protected]> | 2020-06-03 11:46:07 +0100 |
commit | 5837acce532e0cd65a1c0cb8c03cc18a4c22f327 (patch) | |
tree | fa162f2dc57a53be9a6090fb3776cc9586332551 /crates/ra_hir_def | |
parent | 4c655c01f31ceffae4f8219f9706992e0e7f188a (diff) |
Add basic hover and completion doc tests for macro generated items
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/docs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/docs.rs b/crates/ra_hir_def/src/docs.rs index 74b9f8199..ab43cd3d3 100644 --- a/crates/ra_hir_def/src/docs.rs +++ b/crates/ra_hir_def/src/docs.rs | |||
@@ -109,6 +109,6 @@ fn expand_doc_attrs(owner: &dyn ast::AttrsOwner) -> Option<String> { | |||
109 | if docs.is_empty() { | 109 | if docs.is_empty() { |
110 | None | 110 | None |
111 | } else { | 111 | } else { |
112 | Some(docs) | 112 | Some(docs.trim_end_matches("\n\n").to_owned()) |
113 | } | 113 | } |
114 | } | 114 | } |