File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1313//! } 
1414//! ``` 
1515//! 
16- //! Functions return [`Result`] whenever errors are expected and recoverable. In  
16+ //! Functions return [`Result`] whenever errors are expected and 
1717//! recoverable. In the `std` crate, [`Result`] is most prominently used 
1818//! for [I/O](../../std/io/index.html). 
1919//! 
4040//! } 
4141//! ``` 
4242//! 
43- //! Pattern matching on [`Result`]s is clear and straightforward for simple  
43+ //! Pattern matching on [`Result`]s is clear and straightforward for 
4444//! simple cases, but [`Result`] comes with some convenience methods 
4545//! that make working with it more succinct. 
4646//! 
247247//! 
248248//! # Method overview 
249249//! 
250- //! In addition to working with pattern matching, [`Result`] provides a wide  
251- //! variety of different methods. 
250+ //! In addition to working with pattern matching, [`Result`] provides a 
251+ //! wide  variety of different methods. 
252252//! 
253253//! ## Querying the variant 
254254//! 
255- //! In addition to working with pattern matching, [`Result `] provides a  
256- //! wide variety of different methods . 
255+ //! The [`is_ok`] and [`is_err`] methods return [`true `] if the [`Result`]  
256+ //! is [`Ok`] or [`Err`], respectively . 
257257//! 
258258//! [`is_err`]: Result::is_err 
259259//! [`is_ok`]: Result::is_ok 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments