aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/ast.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs
index 74a45f52f..cdfb9c523 100644
--- a/crates/ra_syntax/src/ast.rs
+++ b/crates/ra_syntax/src/ast.rs
@@ -123,8 +123,7 @@ pub trait DocCommentsOwner: AstNode {
123 .map(|comment| { 123 .map(|comment| {
124 let prefix_len = comment.prefix().len(); 124 let prefix_len = comment.prefix().len();
125 125
126 // Strip leading and trailing whitespace 126 let line = comment.text().as_str();
127 let line = comment.text().as_str().trim();
128 127
129 // Determine if the prefix or prefix + 1 char is stripped 128 // Determine if the prefix or prefix + 1 char is stripped
130 let pos = if line 129 let pos = if line