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

Fix grammatical errors #6962

Merged
merged 5 commits into from
Jan 7, 2025
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 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
Loading