Skip to content

Commit d61ab20

Browse files
authored
Use correct var for attribute completeness fn
1 parent 1851f08 commit d61ab20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/doctest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ fn partition_source(s: &str, edition: Edition) -> (String, String, String) {
795795
// If not, then we append the new line into the pending attribute to check
796796
// if this time it's complete...
797797
mod_attr_pending.push_str(line);
798-
if !trimline.is_empty() && check_if_attr_is_complete(line, edition) {
798+
if !trimline.is_empty() && check_if_attr_is_complete(&mod_attr_pending, edition) {
799799
// If it's complete, then we can clear the pending content.
800800
mod_attr_pending.clear();
801801
}

0 commit comments

Comments
 (0)