Skip to content

Commit

Permalink
Fix typos and grammar in documentation comments (#6834)
Browse files Browse the repository at this point in the history
  • Loading branch information
donatik27 authored Dec 6, 2024
1 parent 6671cec commit 67c6eff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/cairo-lang-lowering/src/lower/refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pub struct ClosureInfo {
pub struct SemanticLoweringMapping {
/// Maps member paths ([MemberPath]) to lowered variable ids or scattered variable ids.
scattered: OrderedHashMap<MemberPath, Value>,
/// Maps captured member paths to a clusure that captured them.
/// Maps captured member paths to a closure that captured them.
pub captured: UnorderedHashMap<MemberPath, VariableId>,
/// Maps captured member paths which are copiable to a clusure that captured them.
/// Maps captured member paths which are copiable to a closure that captured them.
pub copiable_captured: UnorderedHashMap<MemberPath, VariableId>,
/// Maps the variable id of a closure to the closure info.
pub closures: UnorderedHashMap<VariableId, ClosureInfo>,
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-lowering/src/optimizations/cancel_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn cancel_ops(lowered: &mut FlatLowered) {
let CancelOpsContext { mut var_remapper, stmts_to_remove, .. } = analysis.analyzer;

// Remove no-longer needed statements.
// Note that dedup() is used since a statement might be marked for removal more then once.
// Note that dedup() is used since a statement might be marked for removal more than once.
for (block_id, stmt_id) in stmts_to_remove
.into_iter()
.sorted_by_key(|(block_id, stmt_id)| (block_id.0, *stmt_id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub struct FixInfo {

#[derive(Clone)]
struct OptimizationCandidate<'a> {
/// The variable that is match.
/// The variable that is matched.
match_variable: VariableId,

/// The match arms of the extern match that we are optimizing.
Expand Down

0 comments on commit 67c6eff

Please sign in to comment.