summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-10-09 15:27:36 +0200
committermo8it <mo8it@proton.me>2024-10-09 15:27:36 +0200
commitf516da4138111aa6eff0970471b8a37182c09fad (patch)
treeb36af617bf5b9a36d0af4a646c38eff4c328dda6
parente852e60416704e032dc2a56a5a30b8beb0a3cc8e (diff)
Avoid single char variables
-rw-r--r--solutions/08_enums/enums3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/solutions/08_enums/enums3.rs b/solutions/08_enums/enums3.rs
index 4bc26b7..94cf250 100644
--- a/solutions/08_enums/enums3.rs
+++ b/solutions/08_enums/enums3.rs
@@ -46,8 +46,8 @@ impl State {
match message {
Message::Resize { width, height } => self.resize(width, height),
Message::Move(point) => self.move_position(point),
- Message::Echo(s) => self.echo(s),
- Message::ChangeColor(r, g, b) => self.change_color(r, g, b),
+ Message::Echo(string) => self.echo(string),
+ Message::ChangeColor(red, green, blue) => self.change_color(red, green, blue),
Message::Quit => self.quit(),
}
}