Skip to content

Commit

Permalink
Fix grammatical errors (#6962)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcofann authored Jan 7, 2025
1 parent 445314d commit 76e5306
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/cairo-lang-lowering/src/destructs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl DemandReporter<VariableId, PanicState> for DestructAdder<'_> {
}

/// A state saved for each position in the back analysis.
/// Used to determine if a Panic object is guaranteed to exist or be created, an where.
/// Used to determine if a Panic object is guaranteed to exist or be created, and where.
#[derive(Clone, Default)]
pub enum PanicState {
/// The flow will end with a panic. The locations are all the possible places a Panic object
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-semantic/src/expr/inference/canonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl CanonicalImpl {
}

/// Mapping between canonical space and inference space.
/// Created by a either canonicalizing or embedding a trait.
/// Created by either canonicalizing or embedding a trait.
#[derive(Debug)]
pub struct CanonicalMapping {
to_canonic: VarMapping,
Expand Down
4 changes: 2 additions & 2 deletions crates/cairo-lang-sierra-ap-change/src/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct ApChangeCalcHelper<'a, TokenUsages: Fn(StatementIdx, CostTokenType) -> us
token_usages: TokenUsages,
/// The size of allocated locals until the statement.
locals_size: UnorderedHashMap<StatementIdx, usize>,
/// The lower bound of a ap-change to the furthest return per statement.
/// The lower bound of an ap-change to the furthest return per statement.
known_ap_change_to_return: UnorderedHashMap<StatementIdx, usize>,
/// The ap_change of functions with known ap changes.
function_ap_change: OrderedHashMap<FunctionId, usize>,
Expand Down Expand Up @@ -139,7 +139,7 @@ impl<'a, TokenUsages: Fn(StatementIdx, CostTokenType) -> usize>
Ok(())
}

/// Calculates the lower bound of a ap-change to the furthest return per statement.
/// Calculates the lower bound of an ap-change to the furthest return per statement.
/// If it is unknown does not set it.
fn calc_known_ap_change_for_statement(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-starknet/src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fn member_analyze(
user_data_path.pop();
}

/// Adds diagnostics for a enum deriving `starknet::Store`.
/// Adds diagnostics for an enum deriving `starknet::Store`.
///
/// Specifically finds cases missing a `#[default]` variant.
fn add_derive_store_enum_diags(
Expand Down

0 comments on commit 76e5306

Please sign in to comment.