We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
all_valid_leading_comments
1 parent 71c0f95 commit 6199f1eCopy full SHA for 6199f1e
1 file changed
src/comments.rs
@@ -873,10 +873,8 @@ CREATE TABLE posts (
873
),
874
];
875
876
- // IMPORTANT: use Comments::new to enforce ordering invariants
877
let comments = Comments::new(comment_vec);
878
879
- // Statement is on line 5; leading comment block should be lines 3-4 only.
880
let leading = comments.all_valid_leading_comments(5);
881
882
assert_eq!(leading.len(), 2);
0 commit comments