Skip to content

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: lencap <[email protected]>
  • Loading branch information
lencap committed Jan 27, 2025
1 parent 6dd956f commit 4131994
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ fn resolve_precedence(
ParserDefinitionNode::Choice(Labeled::anonymous(defs))
}
[_] => defs.into_iter().next().unwrap(),
// NOTE: We give empty names to not ovewrite the names of the flattened fields of the operators
// NOTE: We give empty names to not overwrite the names of the flattened fields of the operators
_ => ParserDefinitionNode::Choice(Labeled::anonymous(defs)),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn extract_latest_changelogs(

let mut all_blocks = markdown::tokenize(&changelog_contents).into_iter();

// Asser that first block contains title '# changelog'
// Assert that first block contains title '# changelog'
assert_eq!(
all_blocks.next().unwrap(),
Block::Header(vec![Span::Text("changelog".to_string())], 1),
Expand Down
6 changes: 3 additions & 3 deletions crates/metaslang/graph_builder/src/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'a, V> VariableMap<'a, V> {
}
}

/// Clears this enviroment.
/// Clears this environment.
pub(crate) fn clear(&mut self) {
self.values.clear();
}
Expand Down Expand Up @@ -161,7 +161,7 @@ impl<'a> Globals<'a> {
.or_else(|| self.context.as_ref().map(|p| p.get(name)).flatten())
}

/// Remove a variable from this enviroment, if it exists.
/// Remove a variable from this environment, if it exists.
pub fn remove(&mut self, name: &Identifier) {
self.values.remove(name);
}
Expand All @@ -174,7 +174,7 @@ impl<'a> Globals<'a> {
Iter(self.values.iter())
}

/// Clears this enviroment.
/// Clears this environment.
pub fn clear(&mut self) {
self.values.clear();
}
Expand Down

0 comments on commit 4131994

Please sign in to comment.