Skip to content

Commit 2a7d97d

Browse files
Fix the trailing whitespace test
1 parent 848c576 commit 2a7d97d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/ra_syntax/src/ast.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,7 @@ fn test_doc_comment_multi_line_block_strips_suffix() {
217217
#[test]
218218
fn test_comments_preserve_trailing_whitespace() {
219219
let file = SourceFile::parse(
220-
r#"
221-
/// Representation of a Realm.
222-
/// In the specification these are called Realm Records.
223-
struct Realm {}"#,
220+
"\n/// Representation of a Realm. \n/// In the specification these are called Realm Records.\nstruct Realm {}",
224221
)
225222
.ok()
226223
.unwrap();

0 commit comments

Comments
 (0)