Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

fix: typos in documentation files #160

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/ecmult.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl ECMultContext {

/// Generate a new `ECMultContext` on the heap. Note that this function is expensive.
pub fn new_boxed() -> Box<Self> {
// This unsafe block allocates a new, unitialized `ECMultContext` and
// This unsafe block allocates a new, uninitialized `ECMultContext` and
// then fills in the value. This is to avoid allocating it on stack
// because the struct is big. All values in `ECMultContext` are manually
// initialized after allocation.
Expand Down Expand Up @@ -187,7 +187,7 @@ impl ECMultGenContext {

/// Generate a new `ECMultGenContext` on the heap. Note that this function is expensive.
pub fn new_boxed() -> Box<Self> {
// 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.
Expand Down
2 changes: 1 addition & 1 deletion core/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down