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

chore: fix some comments #6078

Merged
merged 2 commits into from
Jul 30, 2024
Merged
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 corelib/src/circuit.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl U384TryIntoCircuitModulus of TryInto<[u96; 4], CircuitModulus> {
}

/// Converts 'T' into a 'U96Guarantee'.
/// 'T' must be a a value that fits inside a u96, for example: u8, u96 or BoundedInt<0, 12>.
/// 'T' must be a value that fits inside a u96, for example: u8, u96 or BoundedInt<0, 12>.
extern fn into_u96_guarantee<T>(val: T) -> U96Guarantee nopanic;
extern fn u96_guarantee_verify(guarantee: U96Guarantee) implicits(RangeCheck96) nopanic;

Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-runner/src/casm_run/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl CircuitInstance<'_> {
}

/// Fills the values for a mul mod gate.
/// Assumes all the inputs are ready and the the modulus is not zero or one.
/// Assumes all the inputs are ready and the modulus is not zero or one.
/// Returns true if the values were filled successfully, returns false if its an inverse
/// operation and input is not invertible.
fn fill_mul_gate(&mut self, index: usize) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-semantic/src/expr/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl PatternVariablesQueryable for Arena<Pattern> {
}
}

/// Query a function for variables of patters defined within it.
/// Query a function for variables of patterns defined within it.
///
/// This is a wrapper over [`SemanticGroup`] that takes [`FunctionWithBodyId`]
/// and relays queries to [`SemanticGroup::pattern_semantic`].
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-starknet/src/plugin/storage_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use indoc::formatdoc;
use super::utils::has_derive;
use super::{STORAGE_NODE_ATTR, STORE_TRAIT};

/// Generates an impl for the `starknet::StorageNode` to point to a generate a struct to to be
/// Generates an impl for the `starknet::StorageNode` to point to a generate a struct to be
/// pointed to allowing further access to each of its members (i.e. there will be a fitting member
/// in the inner struct for each member of the struct).
///
Expand Down