File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1832,8 +1832,9 @@ impl<T: ?Sized> Weak<T> {
18321832        } 
18331833    } 
18341834
1835-     /// Returns `true` if the two `Weak`s point to the same value (not just values 
1836- /// that compare as equal). 
1835+     /// Returns `true` if the two `Weak`s point to the same value (not just 
1836+ /// values that compare as equal), or if both don't point to any value 
1837+ /// (because they were created with `Weak::new()`). 
18371838/// 
18381839/// # Notes 
18391840/// 
Original file line number Diff line number Diff line change @@ -1550,15 +1550,15 @@ impl<T: ?Sized> Weak<T> {
15501550        } 
15511551    } 
15521552
1553-     /// Returns `true` if the two `Weak`s point to the same value (not just values 
1554- /// that compare as equal). 
1553+     /// Returns `true` if the two `Weak`s point to the same value (not just 
1554+ /// values that compare as equal), or if both don't point to any value 
1555+ /// (because they were created with `Weak::new()`). 
15551556/// 
15561557/// # Notes 
15571558/// 
15581559/// Since this compares pointers it means that `Weak::new()` will equal each 
15591560/// other, even though they don't point to any value. 
15601561/// 
1561- /// 
15621562/// # Examples 
15631563/// 
15641564/// ``` 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments