Skip to content

Commit

Permalink
fix find and replace defined
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 15, 2023
1 parent b167caf commit e45d257
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/preprocessor/src/codes/pe7_if_unit_or_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Code for IfUnitOrFunction {
))
.with_color(a)
.with_message(format!(
"self.defined as a {} here",
"defined as a {} here",
if self.defined.1 { "unit" } else { "function" }
)),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Code for FunctionCallArgumentCount {
))
.with_color(a)
.with_message(format!(
"self.defined here with {} argument{}",
"defined here with {} argument{}",
self.defined.1.len(),
if self.defined.1.len() == 1 { "" } else { "s" }
)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
│
1 │ #define arma
 │ ──┬─
 │ ╰─── defined as a unit here
 │ ╰─── self.defined as a unit here
 │
3 │ #if arma
 │ ──┬─
Expand Down

0 comments on commit e45d257

Please sign in to comment.