Skip to content

Commit

Permalink
chore: fix some comments (#5880)
Browse files Browse the repository at this point in the history
## Description


 fix some comments

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] If my change requires substantial documentation changes, I have
[requested support from the DevRel
team](https://github.com/FuelLabs/devrel-requests/issues/new/choose)
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.

Signed-off-by: toofooboo <[email protected]>
Co-authored-by: Sophie Dankel <[email protected]>
  • Loading branch information
toofooboo and sdankel authored Apr 25, 2024
1 parent 8436a63 commit db394a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit db394a3

Please sign in to comment.