File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ impl<Ck: Checksum> Corrector<Ck> {
141141    /// A bound on the number of errors and erasures (errors with known location) 
142142/// can be corrected by this corrector. 
143143/// 
144- /// Returns N such that, given E errors and X erasures, corection  is possible 
144+ /// Returns N such that, given E errors and X erasures, correction  is possible 
145145/// iff 2E + X <= N. 
146146pub  fn  singleton_bound ( & self )  -> usize  { 
147147        // d - 1, where d = [number of consecutive roots] + 2 
@@ -243,7 +243,7 @@ impl<Ck: Checksum> Corrector<Ck> {
243243/// Out-of-bound error locations will not occur "naturally", in the sense that they 
244244/// will happen with extremely low probability for a string with a valid HRP and a 
245245/// uniform error pattern. (The probability is 32^-n, where n is the size of the 
246- /// range [`Checksum::ROOT_EXPONENTS`], so it is not neglible  but is very small for 
246+ /// range [`Checksum::ROOT_EXPONENTS`], so it is not negligible  but is very small for 
247247/// most checksums.) However, it is easy to construct adversarial inputs that will 
248248/// exhibit this behavior, so you must take it into account. 
249249/// 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments