File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use rustc_span::{BytePos, Span};
66use  super :: DOC_BROKEN_LINK ; 
77
88pub  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. 
5353struct  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
6666impl  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 , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments