diff --git a/core/src/ecmult.rs b/core/src/ecmult.rs index 8c892a4..c600e6b 100644 --- a/core/src/ecmult.rs +++ b/core/src/ecmult.rs @@ -187,7 +187,7 @@ impl ECMultGenContext { /// Generate a new `ECMultGenContext` on the heap. Note that this function is expensive. pub fn new_boxed() -> Box { - // This unsafe block allocates a new, unitialized `ECMultGenContext` and + // This unsafe block allocates a new, uninitialized `ECMultGenContext` and // then fills in the value. This is to avoid allocating it on stack // because the struct is big. All values in `ECMultGenContext` are // manually initialized after allocation. diff --git a/core/src/field.rs b/core/src/field.rs index 7e1b39f..ecf9abc 100644 --- a/core/src/field.rs +++ b/core/src/field.rs @@ -16,7 +16,7 @@ pub struct Field { /// X = sum(i=0..9, n[i]*2^(i*26)) mod p /// where p = 2^256 - 0x1000003D1 /// - /// The least signifiant byte is in the front. + /// The least significant byte is in the front. n: [u32; 10], magnitude: u32, normalized: bool,