Skip to content

Commit 023fd0b

Browse files
committed
Merge #228: docs: fix typos
51088d1 Update correction.rs (VolodymyrBg) Pull request description: corection -> correction neglible -> negligible ACKs for top commit: apoelstra: ACK 51088d1; successfully ran local tests Tree-SHA512: a5d6b7da6541990fb8925c19d4477a0cb0ae8053e87807511d3ddf8aaddbfd8fe0b3e85ab21dcd0d326b1fcdf23c7c03af7546cf4f065208d42c07c3e7d44bb9
2 parents ddc46ee + 51088d1 commit 023fd0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/primitives/correction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
146146
pub 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
///

0 commit comments

Comments
 (0)