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> {
141
141
/// A bound on the number of errors and erasures (errors with known location)
142
142
/// can be corrected by this corrector.
143
143
///
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
145
145
/// iff 2E + X <= N.
146
146
pub fn singleton_bound ( & self ) -> usize {
147
147
// d - 1, where d = [number of consecutive roots] + 2
@@ -243,7 +243,7 @@ impl<Ck: Checksum> Corrector<Ck> {
243
243
/// Out-of-bound error locations will not occur "naturally", in the sense that they
244
244
/// will happen with extremely low probability for a string with a valid HRP and a
245
245
/// 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
247
247
/// most checksums.) However, it is easy to construct adversarial inputs that will
248
248
/// exhibit this behavior, so you must take it into account.
249
249
///
You can’t perform that action at this time.
0 commit comments