Skip to content

Commit 2e8f2dc

Browse files
committed
Rename function to collect broken links
1 parent 53c2aaa commit 2e8f2dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/doc/broken_link.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_span::{BytePos, Span};
66
use super::DOC_BROKEN_LINK;
77

88
pub fn check(cx: &LateContext<'_>, attrs: &[Attribute]) {
9-
for broken_link in BrokenLinkLoader::collect_spans_broken_link(attrs) {
9+
for broken_link in BrokenLinkLoader::collect_broken_links(attrs) {
1010
let reason_msg = match broken_link.reason {
1111
BrokenLinkReason::MultipleLines => "broken across multiple lines",
1212
};
@@ -51,7 +51,7 @@ enum UrlState {
5151
/// Scan AST attributes looking up in doc comments for broken links
5252
/// which rustdoc won't be able to properly create link tags later.
5353
struct BrokenLinkLoader {
54-
/// List of spans for detected broken links.
54+
/// List of detected broken links.
5555
broken_links: Vec<BrokenLink>,
5656

5757
state: Option<State>,
@@ -64,8 +64,8 @@ struct BrokenLinkLoader {
6464
}
6565

6666
impl BrokenLinkLoader {
67-
/// Return spans of broken links.
68-
fn collect_spans_broken_link(attrs: &[Attribute]) -> Vec<BrokenLink> {
67+
/// Return broken links.
68+
fn collect_broken_links(attrs: &[Attribute]) -> Vec<BrokenLink> {
6969
let mut loader = BrokenLinkLoader {
7070
broken_links: vec![],
7171
state: None,

0 commit comments

Comments
 (0)