Skip to content

Commit

Permalink
chore: fix some comments (#6078)
Browse files Browse the repository at this point in the history
Signed-off-by: riyueguang <[email protected]>
Co-authored-by: orizi <[email protected]>
  • Loading branch information
riyueguang and orizi authored Jul 30, 2024
1 parent 7a90751 commit f7599d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit f7599d8

Please sign in to comment.