From ee9aab4bc5206b80aae4acabf9942fd8f67bc5a8 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 1 Jan 2025 17:26:41 +0100 Subject: [PATCH 1/5] typo destructs.rs --- crates/cairo-lang-lowering/src/destructs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cairo-lang-lowering/src/destructs.rs b/crates/cairo-lang-lowering/src/destructs.rs index 2265150ae03..ff3e15b9344 100644 --- a/crates/cairo-lang-lowering/src/destructs.rs +++ b/crates/cairo-lang-lowering/src/destructs.rs @@ -162,7 +162,7 @@ impl DemandReporter 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 From 736b4eab947a3bd605680a952a1dc063b05ddc3a Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 1 Jan 2025 17:27:14 +0100 Subject: [PATCH 2/5] typo canonic.rs --- crates/cairo-lang-semantic/src/expr/inference/canonic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cairo-lang-semantic/src/expr/inference/canonic.rs b/crates/cairo-lang-semantic/src/expr/inference/canonic.rs index 34f374c66e9..e1da0412834 100644 --- a/crates/cairo-lang-semantic/src/expr/inference/canonic.rs +++ b/crates/cairo-lang-semantic/src/expr/inference/canonic.rs @@ -88,7 +88,7 @@ impl CanonicalImpl { } /// Mapping between canonical space and inference space. -/// Created by a either canonicalizing or embedding a trait. +/// Created by an either canonicalizing or embedding a trait. #[derive(Debug)] pub struct CanonicalMapping { to_canonic: VarMapping, From 4092b02a6434c7ecff454156e0ffbcd04dcb5768 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 1 Jan 2025 17:28:19 +0100 Subject: [PATCH 3/5] typo analyzer.rs --- crates/cairo-lang-starknet/src/analyzer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cairo-lang-starknet/src/analyzer.rs b/crates/cairo-lang-starknet/src/analyzer.rs index 852b75886b4..f4d67b9d2ee 100644 --- a/crates/cairo-lang-starknet/src/analyzer.rs +++ b/crates/cairo-lang-starknet/src/analyzer.rs @@ -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( From 76d38014d4305f6e77d3105ef7107d3b63942c51 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 1 Jan 2025 17:30:55 +0100 Subject: [PATCH 4/5] typos compute.rs --- crates/cairo-lang-sierra-ap-change/src/compute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cairo-lang-sierra-ap-change/src/compute.rs b/crates/cairo-lang-sierra-ap-change/src/compute.rs index 2d1c0407f0b..49542ba21c4 100644 --- a/crates/cairo-lang-sierra-ap-change/src/compute.rs +++ b/crates/cairo-lang-sierra-ap-change/src/compute.rs @@ -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, - /// 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, /// The ap_change of functions with known ap changes. function_ap_change: OrderedHashMap, @@ -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, From 324605af5746868867244cc102d7fdd8771a8ee6 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 7 Jan 2025 11:45:41 +0100 Subject: [PATCH 5/5] typo canonic.rs --- crates/cairo-lang-semantic/src/expr/inference/canonic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cairo-lang-semantic/src/expr/inference/canonic.rs b/crates/cairo-lang-semantic/src/expr/inference/canonic.rs index e1da0412834..bc5ea1824c0 100644 --- a/crates/cairo-lang-semantic/src/expr/inference/canonic.rs +++ b/crates/cairo-lang-semantic/src/expr/inference/canonic.rs @@ -88,7 +88,7 @@ impl CanonicalImpl { } /// Mapping between canonical space and inference space. -/// Created by an either canonicalizing or embedding a trait. +/// Created by either canonicalizing or embedding a trait. #[derive(Debug)] pub struct CanonicalMapping { to_canonic: VarMapping,