@@ -7,18 +7,18 @@ use rustc_span::{BytePos, Pos, Span};
7
7
use super :: DOC_BROKEN_LINK ;
8
8
9
9
/// Scan and report broken link on documents.
10
- /// It ignores false positives detected by pulldown_cmark, and only
10
+ /// It ignores false positives detected by ` pulldown_cmark` , and only
11
11
/// warns users when the broken link is consider a URL.
12
12
// NOTE: We don't check these other cases because
13
13
// rustdoc itself will check and warn about it:
14
14
// - When a link url is broken across multiple lines in the URL path part
15
15
// - When a link tag is missing the close parenthesis character at the end.
16
16
// - When a link has whitespace within the url link.
17
- pub fn check ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & String , fragments : & Vec < DocFragment > ) {
17
+ pub fn check ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & str , fragments : & [ DocFragment ] ) {
18
18
warn_if_broken_link ( cx, bl, doc, fragments) ;
19
19
}
20
20
21
- fn warn_if_broken_link ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & String , fragments : & Vec < DocFragment > ) {
21
+ fn warn_if_broken_link ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & str , fragments : & [ DocFragment ] ) {
22
22
if let Some ( span) = source_span_for_markdown_range ( cx. tcx , doc, & bl. span , fragments) {
23
23
let mut len = 0 ;
24
24
0 commit comments