Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected spelling and grammar mistakes #207

Open
wants to merge 4 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
2 changes: 1 addition & 1 deletion src/starkware/cairo/common/cairo_keccak/keccak.cairo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This module provides a set of functions to compute the (Ethereuem compatible) keccak hash
// This module provides a set of functions to compute the (Ethereum compatible) keccak hash
// function.
//
// In order to use the functions that get the ``keccak_ptr`` implicit argument
Expand Down
2 changes: 1 addition & 1 deletion src/starkware/cairo/common/find_element.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const FIND_ELEMENT_RANGE_CHECK_USAGE = 2;

// Finds an element in the array whose first field is key and returns a pointer
// to this element.
// Since cairo is nondeterministic this is an O(1) operation.
// Since Cairo is nondeterministic this is an O(1) operation.
// Note however that if the array has multiple elements with said key the function may return any
// of those elements.
//
Expand Down
4 changes: 2 additions & 2 deletions src/starkware/cairo/common/math.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func assert_lt_felt{range_check_ptr}(a, b) {
}

// Returns the absolute value of value.
// Prover asumption: -rc_bound < value < rc_bound.
// Prover assumption: -rc_bound < value < rc_bound.
@known_ap_change
func abs_value{range_check_ptr}(value) -> felt {
tempvar is_positive: felt;
Expand All @@ -260,7 +260,7 @@ func abs_value{range_check_ptr}(value) -> felt {
}

// Returns the sign of value: -1, 0 or 1.
// Prover asumption: -rc_bound < value < rc_bound.
// Prover assumption: -rc_bound < value < rc_bound.
@known_ap_change
func sign{range_check_ptr}(value) -> felt {
if (value == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/starkware/cairo/common/patricia_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const MAX_LENGTH = 251;

// A struct of globals that are passed throughout the algorithm.
struct ParticiaGlobals {
struct PatriciaGlobals {
// An array of size MAX_LENGTH, where pow2[i] = 2**i.
pow2: felt*,
// Offset of the relevant value field in DictAccess.
Expand Down