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

chore: fix some comments #5880

Merged
merged 2 commits into from
Apr 25, 2024
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 sway-core/src/control_flow_analysis/flow_graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl<'cfg> ControlFlowGraph<'cfg> {
let result = fs::write(graph_path.clone(), output);
if let Some(error) = result.err() {
tracing::error!(
"There was an issue while outputing DCA graph to path {graph_path:?}\n{error}"
"There was an issue while outputting DCA graph to path {graph_path:?}\n{error}"
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn type_check_variable(
span,
}
}
// Variable isn't a constant, so so we turn it into a [ty::TyScrutinee::Variable].
// Variable isn't a constant, so we turn it into a [ty::TyScrutinee::Variable].
_ => ty::TyScrutinee {
variant: ty::TyScrutineeVariant::Variable(name),
type_id: type_engine.insert(ctx.engines(), TypeInfo::Unknown, None),
Expand Down
2 changes: 1 addition & 1 deletion sway-core/src/semantic_analysis/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl ModuleDepGraph {
let result = fs::write(graph_path.clone(), output);
if let Some(error) = result.err() {
tracing::error!(
"There was an issue while outputing module dep analysis graph to path {graph_path:?}\n{error}"
"There was an issue while outputting module dep analysis graph to path {graph_path:?}\n{error}"
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion sway-core/src/semantic_analysis/type_check_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl TypeCheckAnalysisContext<'_> {
let result = fs::write(graph_path.clone(), output);
if let Some(error) = result.err() {
tracing::error!(
"There was an issue while outputing type check analysis graph to path {graph_path:?}\n{error}"
"There was an issue while outputting type check analysis graph to path {graph_path:?}\n{error}"
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion swayfmt/src/utils/language/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Format for Statement {
/// Remove arguments from the expression if the expression is a method call if
/// the method is a simple two path call (foo.bar()). This needed because in
/// method calls of two parts they are never broke into multiple lines.
/// Arguments however can be be broken into multiple lines, and that is handled
/// Arguments however can be broken into multiple lines, and that is handled
/// by `write_function_call_arguments`
fn remove_arguments_from_expr(expr: Expr) -> Expr {
match expr {
Expand Down
Loading